#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 */
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, int *, int *, int *);
void main() {
  int x, y, z;
  while (1) {
    scanf("%i %i %i", &x, &y, &z);
    if ((x == 0) && (y == 0) && (z == 0))
      return;
    if (z > 1) {
      z *= 2;
      z *= z;
      z -= (z * 0.12);
      printf("%i\n", z);
    } else {
      z *= 2;
      z *= z;
      printf("%i\n", z);
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed9(%rip),%rdi
lea    -0x4(%rbp),%rsi
lea    -0x8(%rbp),%rdx
lea    -0xc(%rbp),%rcx
call   1040 <scanf@plt>
cmpl   $0x0,-0x4(%rbp)
jne    1164 <main+0x44>
cmpl   $0x0,-0x8(%rbp)
jne    1164 <main+0x44>
cmpl   $0x0,-0xc(%rbp)
jne    1164 <main+0x44>
add    $0x10,%rsp
pop    %rbp
ret
cmpl   $0x1,-0xc(%rbp)
jle    11cd <main+0xad>
mov    -0xc(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
cvtsi2sdl -0xc(%rbp),%xmm0
cvtsi2sdl -0xc(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xe56(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%esi
lea    0xe4e(%rip),%rdi
call   1030 <printf@plt>
jmp    11ef <main+0xcf>
mov    -0xc(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%esi
lea    0xe27(%rip),%rdi
call   1030 <printf@plt>
jmp    1128 <main+0x8>

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
jmp    1140 <main+0x20>
cs nopw 0x0(%rax,%rax,1)
mov    %esi,0xc(%rsp)
lea    0xed6(%rip),%rdi
call   1030 <printf@plt>
lea    0xec1(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
call   1040 <scanf@plt>
cmpl   $0x0,0x14(%rsp)
mov    0xc(%rsp),%eax
jne    1171 <main+0x51>
cmpl   $0x0,0x10(%rsp)
jne    1171 <main+0x51>
test   %eax,%eax
je     1199 <main+0x79>
lea    (%rax,%rax,1),%esi
imul   %esi,%esi
cmp    $0x2,%eax
jl     1130 <main+0x10>
xorps  %xmm0,%xmm0
cvtsi2sd %esi,%xmm0
movsd  0xe75(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  %xmm0,%xmm1
cvttsd2si %xmm1,%esi
jmp    1130 <main+0x10>
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"%i %i %i\00"
@.str.1 = [4 x i8] c"%i\0A\00"
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
br label %4
4: ; preds = %0, %41
%5 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%6 = load i32, i32* %1
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %15
8: ; preds = %4
%9 = load i32, i32* %2
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %15
11: ; preds = %8
%12 = load i32, i32* %3
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %11
ret void
15: ; preds = %11, %8, %4
%16 = load i32, i32* %3
%17 = icmp sgt i32 %16, 1
br i1 %17, label %18, label %33
18: ; preds = %15
%19 = load i32, i32* %3
%20 = mul nsw i32 %19, 2
store i32 %20, i32* %3
%21 = load i32, i32* %3
%22 = load i32, i32* %3
%23 = mul nsw i32 %22, %21
store i32 %23, i32* %3
%24 = load i32, i32* %3
%25 = sitofp i32 %24 to double
%26 = load i32, i32* %3
%27 = sitofp i32 %26 to double
%28 = fneg double %25
%29 = call double @llvm.fmuladd.f64(double %28, double 1.200000e-01, double %27)
%30 = fptosi double %29 to i32
store i32 %30, i32* %3
%31 = load i32, i32* %3
%32 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %31)
br label %41
33: ; preds = %15
%34 = load i32, i32* %3
%35 = mul nsw i32 %34, 2
store i32 %35, i32* %3
%36 = load i32, i32* %3
%37 = load i32, i32* %3
%38 = mul nsw i32 %37, %36
store i32 %38, i32* %3
%39 = load i32, i32* %3
%40 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %39)
br label %41
41: ; preds = %33, %18
br label %4
}

LLVM IR (-O2):
@.str = [9 x i8] c"%i %i %i\00"
@.str.1 = [4 x i8] c"%i\0A\00"
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%8 = load i32, i32* %1
%9 = icmp eq i32 %8, 0
%10 = load i32, i32* %2
%11 = icmp eq i32 %10, 0
%12 = select i1 %9, i1 %11, i1 false
%13 = load i32, i32* %3
%14 = icmp eq i32 %13, 0
%15 = select i1 %12, i1 %14, i1 false
br i1 %15, label %16, label %17
16: ; preds = %27, %0
ret void
17: ; preds = %0, %27
%18 = phi i32 [ %36, %27 ], [ %13, %0 ]
%19 = icmp sgt i32 %18, 1
%20 = shl nsw i32 %18, 1
%21 = mul nsw i32 %20, %20
br i1 %19, label %22, label %27
22: ; preds = %17
%23 = sitofp i32 %21 to double
%24 = fneg double %23
%25 = call double @llvm.fmuladd.f64(double %24, double 1.200000e-01, double %23)
%26 = fptosi double %25 to i32
br label %27
27: ; preds = %17, %22
%28 = phi i32 [ %26, %22 ], [ %21, %17 ]
store i32 %28, i32* %3
%29 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %28)
%30 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%31 = load i32, i32* %1
%32 = icmp eq i32 %31, 0
%33 = load i32, i32* %2
%34 = icmp eq i32 %33, 0
%35 = select i1 %32, i1 %34, i1 false
%36 = load i32, i32* %3
%37 = icmp eq i32 %36, 0
%38 = select i1 %35, i1 %37, i1 false
br i1 %38, label %16, label %17
}