#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*/ cng_circle(int, int, int);
int /*<<< orphan*/ cng_clear_screen();
int /*<<< orphan*/ cng_current_color(int, int, int /*<<< orphan*/);
int /*<<< orphan*/ cng_current_color_index(int);
int /*<<< orphan*/ cng_delay(int);
int /*<<< orphan*/ cng_line(int, int, int, int);
int /*<<< orphan*/ cng_put_pixel(int, int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ menu();
int /*<<< orphan*/ stderr;
int touche_a() {
  int i;
  cng_current_color_index(255);
  cng_clear_screen();
  cng_current_color(255, 255, 0);
  cng_line(0, (int)(480 / 10.0), 640, (int)(480 / 10.0));
  cng_line((int)(640 / 10.0), 0, (int)(640 / 10.0), 480);
  cng_current_color_index(3);
  cng_circle((int)(640 / 10.0) + 50, (int)(480 / 10.0) + 50, 50);
  for (i = 0; i < 20; i++) {
    cng_put_pixel(32 * i, 24 * i);
  }
  fprintf(stderr, "touche [a] pressee\n");
  cng_delay(2000);
  menu();
}


x86 assembly (clang, -O0):
<touche_a>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0xff,%edi
call   1060 <cng_current_color_index@plt>
mov    $0x0,%al
call   1080 <cng_clear_screen@plt>
mov    $0xff,%esi
xor    %edx,%edx
mov    %esi,%edi
call   10a0 <cng_current_color@plt>
xor    %edi,%edi
mov    $0x30,%ecx
mov    $0x280,%edx
mov    %ecx,%esi
call   1050 <cng_line@plt>
mov    $0x40,%edx
xor    %esi,%esi
mov    $0x1e0,%ecx
mov    %edx,%edi
call   1050 <cng_line@plt>
mov    $0x3,%edi
call   1060 <cng_current_color_index@plt>
mov    $0x72,%edi
mov    $0x62,%esi
mov    $0x32,%edx
call   10b0 <cng_circle@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x14,-0x8(%rbp)
jge    1229 <touche_a+0x99>
mov    -0x8(%rbp),%edi
shl    $0x5,%edi
imul   $0x18,-0x8(%rbp),%esi
call   1030 <cng_put_pixel@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1202 <touche_a+0x72>
mov    0x2db0(%rip),%rax
mov    (%rax),%edi
lea    0xdc7(%rip),%rsi
call   1070 <fprintf@plt>
mov    $0x7d0,%edi
call   1090 <cng_delay@plt>
mov    $0x0,%al
call   1040 <menu@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<touche_a>:
push   %rax
mov    $0xff,%edi
call   1060 <cng_current_color_index@plt>
xor    %eax,%eax
call   1080 <cng_clear_screen@plt>
mov    $0xff,%edi
mov    $0xff,%esi
xor    %edx,%edx
call   10a0 <cng_current_color@plt>
xor    %edi,%edi
mov    $0x30,%esi
mov    $0x280,%edx
mov    $0x30,%ecx
call   1050 <cng_line@plt>
mov    $0x40,%edi
xor    %esi,%esi
mov    $0x40,%edx
mov    $0x1e0,%ecx
call   1050 <cng_line@plt>
mov    $0x3,%edi
call   1060 <cng_current_color_index@plt>
mov    $0x72,%edi
mov    $0x62,%esi
mov    $0x32,%edx
call   10b0 <cng_circle@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1030 <cng_put_pixel@plt>
mov    $0x20,%edi
mov    $0x18,%esi
call   1030 <cng_put_pixel@plt>
mov    $0x40,%edi
mov    $0x30,%esi
call   1030 <cng_put_pixel@plt>
mov    $0x60,%edi
mov    $0x48,%esi
call   1030 <cng_put_pixel@plt>
mov    $0x80,%edi
mov    $0x60,%esi
call   1030 <cng_put_pixel@plt>
mov    $0xa0,%edi
mov    $0x78,%esi
call   1030 <cng_put_pixel@plt>
mov    $0xc0,%edi
mov    $0x90,%esi
call   1030 <cng_put_pixel@plt>
mov    $0xe0,%edi
mov    $0xa8,%esi
call   1030 <cng_put_pixel@plt>
mov    $0x100,%edi
mov    $0xc0,%esi
call   1030 <cng_put_pixel@plt>
mov    $0x120,%edi
mov    $0xd8,%esi
call   1030 <cng_put_pixel@plt>
mov    $0x140,%edi
mov    $0xf0,%esi
call   1030 <cng_put_pixel@plt>
mov    $0x160,%edi
mov    $0x108,%esi
call   1030 <cng_put_pixel@plt>
mov    $0x180,%edi
mov    $0x120,%esi
call   1030 <cng_put_pixel@plt>
mov    $0x1a0,%edi
mov    $0x138,%esi
call   1030 <cng_put_pixel@plt>
mov    $0x1c0,%edi
mov    $0x150,%esi
call   1030 <cng_put_pixel@plt>
mov    $0x1e0,%edi
mov    $0x168,%esi
call   1030 <cng_put_pixel@plt>
mov    $0x200,%edi
mov    $0x180,%esi
call   1030 <cng_put_pixel@plt>
mov    $0x220,%edi
mov    $0x198,%esi
call   1030 <cng_put_pixel@plt>
mov    $0x240,%edi
mov    $0x1b0,%esi
call   1030 <cng_put_pixel@plt>
mov    $0x260,%edi
mov    $0x1c8,%esi
call   1030 <cng_put_pixel@plt>
mov    0x2cb6(%rip),%rax
mov    (%rax),%edi
lea    0xccd(%rip),%rsi
call   1070 <fprintf@plt>
mov    $0x7d0,%edi
call   1090 <cng_delay@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <menu@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [20 x i8] c"touche [a] pressee\0A\00"
define i32 @touche_a() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 @cng_current_color_index(i32 255)
%4 = call i32 (...) @cng_clear_screen()
%5 = call i32 @cng_current_color(i32 255, i32 255, i32 0)
%6 = call i32 @cng_line(i32 0, i32 48, i32 640, i32 48)
%7 = call i32 @cng_line(i32 64, i32 0, i32 64, i32 480)
%8 = call i32 @cng_current_color_index(i32 3)
%9 = call i32 @cng_circle(i32 114, i32 98, i32 50)
store i32 0, i32* %2
br label %10
10: ; preds = %19, %0
%11 = load i32, i32* %2
%12 = icmp slt i32 %11, 20
br i1 %12, label %13, label %22
13: ; preds = %10
%14 = load i32, i32* %2
%15 = mul nsw i32 32, %14
%16 = load i32, i32* %2
%17 = mul nsw i32 24, %16
%18 = call i32 @cng_put_pixel(i32 %15, i32 %17)
br label %19
19: ; preds = %13
%20 = load i32, i32* %2
%21 = add nsw i32 %20, 1
store i32 %21, i32* %2
br label %10
22: ; preds = %10
%23 = load i32, i32* @stderr
%24 = call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%25 = call i32 @cng_delay(i32 2000)
%26 = call i32 (...) @menu()
%27 = load i32, i32* %1
ret i32 %27
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [20 x i8] c"touche [a] pressee\0A\00"
define i32 @touche_a() {
%1 = tail call i32 @cng_current_color_index(i32 255)
%2 = tail call i32 (...) @cng_clear_screen()
%3 = tail call i32 @cng_current_color(i32 255, i32 255, i32 0)
%4 = tail call i32 @cng_line(i32 0, i32 48, i32 640, i32 48)
%5 = tail call i32 @cng_line(i32 64, i32 0, i32 64, i32 480)
%6 = tail call i32 @cng_current_color_index(i32 3)
%7 = tail call i32 @cng_circle(i32 114, i32 98, i32 50)
%8 = tail call i32 @cng_put_pixel(i32 0, i32 0)
%9 = tail call i32 @cng_put_pixel(i32 32, i32 24)
%10 = tail call i32 @cng_put_pixel(i32 64, i32 48)
%11 = tail call i32 @cng_put_pixel(i32 96, i32 72)
%12 = tail call i32 @cng_put_pixel(i32 128, i32 96)
%13 = tail call i32 @cng_put_pixel(i32 160, i32 120)
%14 = tail call i32 @cng_put_pixel(i32 192, i32 144)
%15 = tail call i32 @cng_put_pixel(i32 224, i32 168)
%16 = tail call i32 @cng_put_pixel(i32 256, i32 192)
%17 = tail call i32 @cng_put_pixel(i32 288, i32 216)
%18 = tail call i32 @cng_put_pixel(i32 320, i32 240)
%19 = tail call i32 @cng_put_pixel(i32 352, i32 264)
%20 = tail call i32 @cng_put_pixel(i32 384, i32 288)
%21 = tail call i32 @cng_put_pixel(i32 416, i32 312)
%22 = tail call i32 @cng_put_pixel(i32 448, i32 336)
%23 = tail call i32 @cng_put_pixel(i32 480, i32 360)
%24 = tail call i32 @cng_put_pixel(i32 512, i32 384)
%25 = tail call i32 @cng_put_pixel(i32 544, i32 408)
%26 = tail call i32 @cng_put_pixel(i32 576, i32 432)
%27 = tail call i32 @cng_put_pixel(i32 608, i32 456)
%28 = load i32, i32* @stderr
%29 = tail call i32 @fprintf(i32 %28, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%30 = tail call i32 @cng_delay(i32 2000)
%31 = tail call i32 (...) @menu()
ret i32 undef
}