#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*/ gotoxy(int, int);
int /*<<< orphan*/ printf(char *);
int wherex();
void Titre(void) {
  int x, y;
  x = 23;
  y = 10;
  gotoxy(x, y);
  printf("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
  y++;
  gotoxy(x, y);
  printf("XX                                  XX");
  y++;
  gotoxy(x, y);
  printf("XX            Bienvenue             XX");
  y++;
  gotoxy(x, y);
  printf("XX                                  XX");
  y++;
  gotoxy(x, y);
  printf("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
  x = wherex();
  gotoxy(x - 1, y);
  return;
}


x86 assembly (clang, -O0):
<Titre>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x17,-0x4(%rbp)
movl   $0xa,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1050 <gotoxy@plt>
lea    0xea8(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1050 <gotoxy@plt>
lea    0xeaf(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1050 <gotoxy@plt>
lea    0xeb6(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1050 <gotoxy@plt>
lea    0xe6f(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1050 <gotoxy@plt>
lea    0xe28(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <wherex@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
sub    $0x1,%edi
mov    -0x8(%rbp),%esi
call   1050 <gotoxy@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Titre>:
push   %r14
push   %rbx
push   %rax
mov    $0x17,%edi
mov    $0xa,%esi
call   1050 <gotoxy@plt>
lea    0xeb6(%rip),%r14
mov    %r14,%rdi
call   1030 <printf@plt>
mov    $0x17,%edi
mov    $0xb,%esi
call   1050 <gotoxy@plt>
lea    0xebf(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    $0x17,%edi
mov    $0xc,%esi
call   1050 <gotoxy@plt>
lea    0xec8(%rip),%rdi
call   1030 <printf@plt>
mov    $0x17,%edi
mov    $0xd,%esi
call   1050 <gotoxy@plt>
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    $0x17,%edi
mov    $0xe,%esi
call   1050 <gotoxy@plt>
mov    %r14,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <wherex@plt>
lea    -0x1(%rax),%edi
mov    $0xe,%esi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1050 <gotoxy@plt>

LLVM IR (-O0):
@.str = [39 x i8] c"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\00"
@.str.1 = [39 x i8] c"XX XX\00"
@.str.2 = [39 x i8] c"XX Bienvenue XX\00"
define void @Titre() {
%1 = alloca i32
%2 = alloca i32
store i32 23, i32* %1
store i32 10, i32* %2
%3 = load i32, i32* %1
%4 = load i32, i32* %2
%5 = call i32 @gotoxy(i32 %3, i32 %4)
%6 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%7 = load i32, i32* %2
%8 = add nsw i32 %7, 1
store i32 %8, i32* %2
%9 = load i32, i32* %1
%10 = load i32, i32* %2
%11 = call i32 @gotoxy(i32 %9, i32 %10)
%12 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%13 = load i32, i32* %2
%14 = add nsw i32 %13, 1
store i32 %14, i32* %2
%15 = load i32, i32* %1
%16 = load i32, i32* %2
%17 = call i32 @gotoxy(i32 %15, i32 %16)
%18 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0))
%19 = load i32, i32* %2
%20 = add nsw i32 %19, 1
store i32 %20, i32* %2
%21 = load i32, i32* %1
%22 = load i32, i32* %2
%23 = call i32 @gotoxy(i32 %21, i32 %22)
%24 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%25 = load i32, i32* %2
%26 = add nsw i32 %25, 1
store i32 %26, i32* %2
%27 = load i32, i32* %1
%28 = load i32, i32* %2
%29 = call i32 @gotoxy(i32 %27, i32 %28)
%30 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%31 = call i32 (...) @wherex()
store i32 %31, i32* %1
%32 = load i32, i32* %1
%33 = sub nsw i32 %32, 1
%34 = load i32, i32* %2
%35 = call i32 @gotoxy(i32 %33, i32 %34)
ret void
}

LLVM IR (-O2):
@.str = [39 x i8] c"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\00"
@.str.1 = [39 x i8] c"XX XX\00"
@.str.2 = [39 x i8] c"XX Bienvenue XX\00"
define void @Titre() {
%1 = tail call i32 @gotoxy(i32 23, i32 10)
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @gotoxy(i32 23, i32 11)
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @gotoxy(i32 23, i32 12)
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @gotoxy(i32 23, i32 13)
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%9 = tail call i32 @gotoxy(i32 23, i32 14)
%10 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%11 = tail call i32 (...) @wherex()
%12 = add nsw i32 %11, -1
%13 = tail call i32 @gotoxy(i32 %12, i32 14)
ret void
}