#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*/ drawpos(int);
int /*<<< orphan*/ nl();
int main(void) {
  int i;
  int j;
  i = -9;
  while (i <= 9) {
    j = -20;
    nl();
    while (j <= 20) {
      drawpos(i * i * 22 * 22 / (10 * 10) + j * j > 380);
      j = j + 1;
    }
    i = i + 1;
  }
  nl();
  nl();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xfffffff7,-0x8(%rbp)
cmpl   $0x9,-0x8(%rbp)
jg     11a4 <main+0x84>
movl   $0xffffffec,-0xc(%rbp)
mov    $0x0,%al
call   1030 <nl@plt>
cmpl   $0x14,-0xc(%rbp)
jg     1196 <main+0x76>
mov    -0x8(%rbp),%eax
imul   -0x8(%rbp),%eax
imul   $0x16,%eax,%eax
imul   $0x16,%eax,%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    -0xc(%rbp),%ecx
imul   -0xc(%rbp),%ecx
add    %ecx,%eax
cmp    $0x17c,%eax
setg   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <drawpos@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    114e <main+0x2e>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1136 <main+0x16>
mov    $0x0,%al
call   1030 <nl@plt>
mov    $0x0,%al
call   1030 <nl@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
mov    $0xfffffff7,%r14d
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1030 <nl@plt>
mov    %r14d,%eax
imul   %r14d,%eax
imul   $0x1e4,%eax,%eax
cltq
imul   $0x51eb851f,%rax,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
sar    $0x25,%rbx
add    %eax,%ebx
mov    $0xffffffec,%ebp
nop
mov    %ebp,%eax
imul   %ebp,%eax
add    %ebx,%eax
xor    %edi,%edi
cmp    $0x17d,%eax
setge  %dil
call   1040 <drawpos@plt>
add    $0x1,%ebp
cmp    $0x15,%ebp
jne    1160 <main+0x40>
add    $0x1,%r14d
cmp    $0xa,%r14d
jne    1130 <main+0x10>
xor    %eax,%eax
call   1030 <nl@plt>
xor    %eax,%eax
call   1030 <nl@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 -9, i32* %2
br label %4
4: ; preds = %28, %0
%5 = load i32, i32* %2
%6 = icmp sle i32 %5, 9
br i1 %6, label %7, label %31
7: ; preds = %4
store i32 -20, i32* %3
%8 = call i32 (...) @nl()
br label %9
9: ; preds = %12, %7
%10 = load i32, i32* %3
%11 = icmp sle i32 %10, 20
br i1 %11, label %12, label %28
12: ; preds = %9
%13 = load i32, i32* %2
%14 = load i32, i32* %2
%15 = mul nsw i32 %13, %14
%16 = mul nsw i32 %15, 22
%17 = mul nsw i32 %16, 22
%18 = sdiv i32 %17, 100
%19 = load i32, i32* %3
%20 = load i32, i32* %3
%21 = mul nsw i32 %19, %20
%22 = add nsw i32 %18, %21
%23 = icmp sgt i32 %22, 380
%24 = zext i1 %23 to i32
%25 = call i32 @drawpos(i32 %24)
%26 = load i32, i32* %3
%27 = add nsw i32 %26, 1
store i32 %27, i32* %3
br label %9
28: ; preds = %9
%29 = load i32, i32* %2
%30 = add nsw i32 %29, 1
store i32 %30, i32* %2
br label %4
31: ; preds = %4
%32 = call i32 (...) @nl()
%33 = call i32 (...) @nl()
%34 = load i32, i32* %1
ret i32 %34
}

LLVM IR (-O2):
define i32 @main() {
br label %1
1: ; preds = %0, %16
%2 = phi i32 [ -9, %0 ], [ %17, %16 ]
%3 = tail call i32 (...) @nl()
%4 = mul nsw i32 %2, 484
%5 = mul i32 %4, %2
%6 = sdiv i32 %5, 100
br label %7
7: ; preds = %1, %7
%8 = phi i32 [ -20, %1 ], [ %14, %7 ]
%9 = mul nsw i32 %8, %8
%10 = add nsw i32 %9, %6
%11 = icmp sgt i32 %10, 380
%12 = zext i1 %11 to i32
%13 = tail call i32 @drawpos(i32 %12)
%14 = add nsw i32 %8, 1
%15 = icmp eq i32 %14, 21
br i1 %15, label %16, label %7
16: ; preds = %7
%17 = add nsw i32 %2, 1
%18 = icmp eq i32 %17, 10
br i1 %18, label %19, label %1
19: ; preds = %16
%20 = tail call i32 (...) @nl()
%21 = tail call i32 (...) @nl()
ret i32 0
}