#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*/ Draw();
int /*<<< orphan*/ Ended();
int /*<<< orphan*/ MoveBall();
int /*<<< orphan*/ MoveBat();
int /*<<< orphan*/ PrintBall();
int /*<<< orphan*/ PrintBat();
int /*<<< orphan*/ PrintSpace();
int /*<<< orphan*/ PrintWall();
int /*<<< orphan*/ SetupWall();
int /*<<< orphan*/ SlowDown();
int main(int argc, char **argv) {
  SetupWall();
  while (!Ended()) {
    PrintSpace();
    PrintWall();
    PrintBat();
    PrintBall();
    MoveBall();
    MoveBat();
    Draw();
    SlowDown();
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1090 <SetupWall@plt>
mov    $0x0,%al
call   1050 <Ended@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    11d9 <main+0x39>
jmp    1216 <main+0x76>
mov    $0x0,%al
call   10b0 <PrintSpace@plt>
mov    $0x0,%al
call   1060 <PrintWall@plt>
mov    $0x0,%al
call   1070 <PrintBat@plt>
mov    $0x0,%al
call   1030 <PrintBall@plt>
mov    $0x0,%al
call   1040 <MoveBall@plt>
mov    $0x0,%al
call   10c0 <MoveBat@plt>
mov    $0x0,%al
call   1080 <Draw@plt>
mov    $0x0,%al
call   10a0 <SlowDown@plt>
jmp    11bd <main+0x1d>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1090 <SetupWall@plt>
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1050 <Ended@plt>
test   %eax,%eax
jne    11f5 <main+0x55>
xor    %eax,%eax
call   10b0 <PrintSpace@plt>
xor    %eax,%eax
call   1060 <PrintWall@plt>
xor    %eax,%eax
call   1070 <PrintBat@plt>
xor    %eax,%eax
call   1030 <PrintBall@plt>
xor    %eax,%eax
call   1040 <MoveBall@plt>
xor    %eax,%eax
call   10c0 <MoveBat@plt>
xor    %eax,%eax
call   1080 <Draw@plt>
xor    %eax,%eax
call   10a0 <SlowDown@plt>
jmp    11b0 <main+0x10>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 (...) @SetupWall()
br label %7
7: ; preds = %11, %2
%8 = call i32 (...) @Ended()
%9 = icmp ne i32 %8, 0
%10 = xor i1 %9, true
br i1 %10, label %11, label %20
11: ; preds = %7
%12 = call i32 (...) @PrintSpace()
%13 = call i32 (...) @PrintWall()
%14 = call i32 (...) @PrintBat()
%15 = call i32 (...) @PrintBall()
%16 = call i32 (...) @MoveBall()
%17 = call i32 (...) @MoveBat()
%18 = call i32 (...) @Draw()
%19 = call i32 (...) @SlowDown()
br label %7
20: ; preds = %7
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @SetupWall()
%4 = tail call i32 (...) @Ended()
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %17
6: ; preds = %2, %6
%7 = tail call i32 (...) @PrintSpace()
%8 = tail call i32 (...) @PrintWall()
%9 = tail call i32 (...) @PrintBat()
%10 = tail call i32 (...) @PrintBall()
%11 = tail call i32 (...) @MoveBall()
%12 = tail call i32 (...) @MoveBat()
%13 = tail call i32 (...) @Draw()
%14 = tail call i32 (...) @SlowDown()
%15 = tail call i32 (...) @Ended()
%16 = icmp eq i32 %15, 0
br i1 %16, label %6, label %17
17: ; preds = %6, %2
ret i32 0
}