#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*/ play();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ system(char *);
void creditos(void) {
  int jogar;
  printf("\n\n\n\t\tCreditos:\n\n");
  printf("\tNome do programa: Jogo da velha\n");
  printf("\tNome do autor:    Maik Basso\n");
  printf("\tE-mail do autor:  maik@maikbasso.com.br\n");
  printf("\tAno:              2011\n");
  printf("\tVersao:           1.0\n");
  printf("\n\n>>> Deseja jogar agora?(1-sim, 2-nao)");
  scanf("%d", &jogar);
  if (jogar == 1) {
    system("cls");
    play();
  }
}


x86 assembly (clang, -O0):
<creditos>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xeb1(%rip),%rdi
call   1040 <printf@plt>
lea    0xeb6(%rip),%rdi
call   1040 <printf@plt>
lea    0xecc(%rip),%rdi
call   1040 <printf@plt>
lea    0xedf(%rip),%rdi
call   1040 <printf@plt>
lea    0xefd(%rip),%rdi
call   1040 <printf@plt>
lea    0xf0a(%rip),%rdi
call   1040 <printf@plt>
lea    0xf16(%rip),%rdi
call   1040 <printf@plt>
lea    0xf32(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1060 <scanf@plt>
cmpl   $0x1,-0x4(%rbp)
jne    11c9 <creditos+0x89>
lea    0xf1b(%rip),%rdi
call   1030 <system@plt>
mov    $0x0,%al
call   1050 <play@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<creditos>:
push   %rax
lea    0xed7(%rip),%rdi
call   1030 <puts@plt>
lea    0xedb(%rip),%rdi
call   1030 <puts@plt>
lea    0xef0(%rip),%rdi
call   1030 <puts@plt>
lea    0xf02(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2b(%rip),%rdi
call   1030 <puts@plt>
lea    0xe60(%rip),%rdi
call   1050 <printf@plt>
lea    0xe7c(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1070 <scanf@plt>
cmpl   $0x1,0x4(%rsp)
jne    11d0 <creditos+0x80>
lea    0xe67(%rip),%rdi
call   1040 <system@plt>
xor    %eax,%eax
call   1060 <play@plt>
pop    %rax
ret

LLVM IR (-O0):
@.str = [17 x i8] c"\0A\0A\0A\09\09Creditos:\0A\0A\00"
@.str.1 = [34 x i8] c"\09Nome do programa: Jogo da velha\0A\00"
@.str.2 = [31 x i8] c"\09Nome do autor: Maik Basso\0A\00"
@.str.3 = [42 x i8] c"\09E-mail do autor: maik@maikbasso.com.br\0A\00"
@.str.4 = [25 x i8] c"\09Ano: 2011\0A\00"
@.str.5 = [24 x i8] c"\09Versao: 1.0\0A\00"
@.str.6 = [40 x i8] c"\0A\0A>>> Deseja jogar agora?(1-sim, 2-nao)\00"
@.str.7 = [3 x i8] c"%d\00"
@.str.8 = [4 x i8] c"cls\00"
define void @creditos() {
%1 = alloca i32
%2 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %1)
%10 = load i32, i32* %1
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %15
12: ; preds = %0
%13 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%14 = call i32 (...) @play()
br label %15
15: ; preds = %12, %0
ret void
}

LLVM IR (-O2):
@.str.6 = [40 x i8] c"\0A\0A>>> Deseja jogar agora?(1-sim, 2-nao)\00"
@.str.7 = [3 x i8] c"%d\00"
@.str.8 = [4 x i8] c"cls\00"
@str = [16 x i8] c"\0A\0A\0A\09\09Creditos:\0A\00"
@str.9 = [33 x i8] c"\09Nome do programa: Jogo da velha\00"
@str.10 = [30 x i8] c"\09Nome do autor: Maik Basso\00"
@str.11 = [41 x i8] c"\09E-mail do autor: maik@maikbasso.com.br\00"
@str.12 = [24 x i8] c"\09Ano: 2011\00"
@str.13 = [23 x i8] c"\09Versao: 1.0\00"
define void @creditos() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.9, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.10, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.11, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.12, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.13, i64 0, i64 0))
%9 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %1)
%11 = load i32, i32* %1
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %16
13: ; preds = %0
%14 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%15 = call i32 (...) @play()
br label %16
16: ; preds = %13, %0
ret void
}