#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
double M_PI_2;
scalar_t__ ceil(double);
int /*<<< orphan*/ printf(char *, int, int);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ scanf(char *, ...);
int main(void) {
  int N, i;
  double x, y, A;
  scanf("%d", &N);
  for (i = 1; i <= N; i++) {
    scanf("%lf%lf", &x, &y);
    A = (x * x + y * y) * M_PI_2;
    printf("Property %d: This property will begin eroding in year %d.\n", i,
           (int)ceil(A / 50));
  }
  puts("END OF OUTPUT.");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeb2(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     11f1 <main+0xb1>
lea    0xe90(%rip),%rdi
lea    -0x18(%rbp),%rsi
lea    -0x20(%rbp),%rdx
mov    $0x0,%al
call   1060 <scanf@plt>
movsd  -0x18(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm1
mulsd  -0x20(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    0x2e3b(%rip),%rax
mulsd  (%rax),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x2c(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  0xe37(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1040 <ceil@plt>
mov    -0x2c(%rbp),%esi
mov    %eax,%edx
lea    0xe34(%rip),%rdi
call   1050 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1168 <main+0x28>
lea    0xe55(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xeb3(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
cmpl   $0x0,0x4(%rsp)
jle    11e0 <main+0xa0>
lea    0xe9c(%rip),%r14
lea    0x10(%rsp),%r15
lea    0x8(%rsp),%r12
mov    0x2e68(%rip),%r13
lea    0xe8b(%rip),%rbx
xor    %ebp,%ebp
nopl   0x0(%rax)
add    $0x1,%ebp
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1060 <scanf@plt>
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
mulsd  %xmm1,%xmm1
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
mulsd  0x0(%r13),%xmm0
divsd  0xe37(%rip),%xmm0
call   1040 <ceil@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1050 <printf@plt>
cmp    0x4(%rsp),%ebp
jl     1190 <main+0x50>
lea    0xe66(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [7 x i8] c"%lf%lf\00"
@M_PI_2 = global double 0.000000e+00
@.str.2 = [59 x i8] c"Property %d: This property will begin eroding in year %d.\0A\00"
@.str.3 = [15 x i8] c"END OF OUTPUT.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca double
%5 = alloca double
%6 = alloca double
store i32 0, i32* %1
%7 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
store i32 1, i32* %3
br label %8
8: ; preds = %28, %0
%9 = load i32, i32* %3
%10 = load i32, i32* %2
%11 = icmp sle i32 %9, %10
br i1 %11, label %12, label %31
12: ; preds = %8
%13 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double* %4, double* %5)
%14 = load double, double* %4
%15 = load double, double* %4
%16 = load double, double* %5
%17 = load double, double* %5
%18 = fmul double %16, %17
%19 = call double @llvm.fmuladd.f64(double %14, double %15, double %18)
%20 = load double, double* @M_PI_2
%21 = fmul double %19, %20
store double %21, double* %6
%22 = load i32, i32* %3
%23 = load double, double* %6
%24 = fdiv double %23, 5.000000e+01
%25 = call i64 @ceil(double %24)
%26 = trunc i64 %25 to i32
%27 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.2, i64 0, i64 0), i32 %22, i32 %26)
br label %28
28: ; preds = %12
%29 = load i32, i32* %3
%30 = add nsw i32 %29, 1
store i32 %30, i32* %3
br label %8
31: ; preds = %8
%32 = call i32 @puts(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [7 x i8] c"%lf%lf\00"
@M_PI_2 = global double 0.000000e+00
@.str.2 = [59 x i8] c"Property %d: This property will begin eroding in year %d.\0A\00"
@.str.3 = [15 x i8] c"END OF OUTPUT.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = bitcast i32* %1 to i8*
%5 = bitcast double* %2 to i8*
%6 = bitcast double* %3 to i8*
%7 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%8 = load i32, i32* %1
%9 = icmp slt i32 %8, 1
br i1 %9, label %26, label %10
10: ; preds = %0, %10
%11 = phi i32 [ %23, %10 ], [ 1, %0 ]
%12 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double* %2, double* %3)
%13 = load double, double* %2
%14 = load double, double* %3
%15 = fmul double %14, %14
%16 = call double @llvm.fmuladd.f64(double %13, double %13, double %15)
%17 = load double, double* @M_PI_2
%18 = fmul double %17, %16
%19 = fdiv double %18, 5.000000e+01
%20 = call i64 @ceil(double %19)
%21 = trunc i64 %20 to i32
%22 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.2, i64 0, i64 0), i32 %11, i32 %21)
%23 = add nuw nsw i32 %11, 1
%24 = load i32, i32* %1
%25 = icmp slt i32 %11, %24
br i1 %25, label %10, label %26
26: ; preds = %10, %0
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}