#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*/ i_init_input();
int /*<<< orphan*/ i_process_input();
int /*<<< orphan*/ jm_manager_init();
int /*<<< orphan*/ proximity_init();
int /*<<< orphan*/ r_init_display();
int /*<<< orphan*/ r_render();
int /*<<< orphan*/ send_test_message();
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int /*<<< orphan*/ usleep(int);
int main(int argc, char **argv) {
  srand(time(NULL));
  jm_manager_init();
  r_init_display();
  i_init_input();
  proximity_init();
  send_test_message();
  for (;;) {
    usleep(10000);
    i_process_input();
    r_render();
  }
}


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)
xor    %eax,%eax
mov    %eax,%edi
call   1080 <time@plt>
mov    %eax,%edi
call   1070 <srand@plt>
mov    $0x0,%al
call   1090 <jm_manager_init@plt>
mov    $0x0,%al
call   10b0 <r_init_display@plt>
mov    $0x0,%al
call   10a0 <i_init_input@plt>
mov    $0x0,%al
call   1040 <proximity_init@plt>
mov    $0x0,%al
call   1030 <send_test_message@plt>
mov    $0x2710,%edi
call   10c0 <usleep@plt>
mov    $0x0,%al
call   1050 <i_process_input@plt>
mov    $0x0,%al
call   1060 <r_render@plt>
jmp    11e9 <main+0x49>

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1080 <time@plt>
mov    %eax,%edi
call   1070 <srand@plt>
xor    %eax,%eax
call   1090 <jm_manager_init@plt>
xor    %eax,%eax
call   10b0 <r_init_display@plt>
xor    %eax,%eax
call   10a0 <i_init_input@plt>
xor    %eax,%eax
call   1040 <proximity_init@plt>
xor    %eax,%eax
call   1030 <send_test_message@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0x2710,%edi
call   10c0 <usleep@plt>
xor    %eax,%eax
call   1050 <i_process_input@plt>
xor    %eax,%eax
call   1060 <r_render@plt>
jmp    11e0 <main+0x40>

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 @time(i32* null)
%7 = call i32 @srand(i32 %6)
%8 = call i32 (...) @jm_manager_init()
%9 = call i32 (...) @r_init_display()
%10 = call i32 (...) @i_init_input()
%11 = call i32 (...) @proximity_init()
%12 = call i32 (...) @send_test_message()
br label %13
13: ; preds = %13, %2
%14 = call i32 @usleep(i32 10000)
%15 = call i32 (...) @i_process_input()
%16 = call i32 (...) @r_render()
br label %13
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @time(i32* null)
%4 = tail call i32 @srand(i32 %3)
%5 = tail call i32 (...) @jm_manager_init()
%6 = tail call i32 (...) @r_init_display()
%7 = tail call i32 (...) @i_init_input()
%8 = tail call i32 (...) @proximity_init()
%9 = tail call i32 (...) @send_test_message()
br label %10
10: ; preds = %10, %2
%11 = tail call i32 @usleep(i32 10000)
%12 = tail call i32 (...) @i_process_input()
%13 = tail call i32 (...) @r_render()
br label %10
}