#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 instrucoes(void) {
  int jogar;
  printf("\t\tInstrucoes:\n\n");
  printf("1- Observe todas as jogadas possiveis:\n\n");
  printf("\t\t C0   C1   C2\n\n");
  printf("\t     L0");
  printf("\t 00 | 01 | 02\n");
  printf("\t\t--------------\n");
  printf("\t     L1");
  printf("\t 10 | 11 | 12\n");
  printf("\t\t--------------\n");
  printf("\t     L2");
  printf("\t 20 | 21 | 22\n\n");
  printf("2- As jogadas sao compostas de 2 numeros sendo o primeiro indicando "
         "a linha");
  printf("\n[0,1,2] e um segundo indicando a coluna [0,1,2].\n\n");
  printf("3- Apos digitar tecle enter para concluir a jogada.\n\n");
  printf(">>> Deseja jogar agora?(1-sim, 2-nao)");
  scanf("%d", &jogar);
  if (jogar == 1) {
    system("cls");
    play();
  }
}


x86 assembly (clang, -O0):
<instrucoes>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xeb1(%rip),%rdi
call   1040 <printf@plt>
lea    0xeb5(%rip),%rdi
call   1040 <printf@plt>
lea    0xed2(%rip),%rdi
call   1040 <printf@plt>
lea    0xed8(%rip),%rdi
call   1040 <printf@plt>
lea    0xed5(%rip),%rdi
call   1040 <printf@plt>
lea    0xed9(%rip),%rdi
call   1040 <printf@plt>
lea    0xedf(%rip),%rdi
call   1040 <printf@plt>
lea    0xedc(%rip),%rdi
call   1040 <printf@plt>
lea    0xeb5(%rip),%rdi
call   1040 <printf@plt>
lea    0xed4(%rip),%rdi
call   1040 <printf@plt>
lea    0xed1(%rip),%rdi
call   1040 <printf@plt>
lea    0xed6(%rip),%rdi
call   1040 <printf@plt>
lea    0xf16(%rip),%rdi
call   1040 <printf@plt>
lea    0xf3e(%rip),%rdi
call   1040 <printf@plt>
lea    0xf68(%rip),%rdi
call   1040 <printf@plt>
lea    0xf82(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1060 <scanf@plt>
cmpl   $0x1,-0x4(%rbp)
jne    1229 <instrucoes+0xe9>
lea    0xf6b(%rip),%rdi
call   1030 <system@plt>
mov    $0x0,%al
call   1050 <play@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<instrucoes>:
push   %rbx
sub    $0x10,%rsp
lea    0xf38(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf57(%rip),%rdi
call   1030 <puts@plt>
lea    0xe80(%rip),%rdi
call   1050 <printf@plt>
lea    0xf50(%rip),%rdi
call   1030 <puts@plt>
lea    0xf62(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xe62(%rip),%rdi
call   1050 <printf@plt>
lea    0xf38(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xe4b(%rip),%rdi
call   1050 <printf@plt>
lea    0xf38(%rip),%rdi
call   1030 <puts@plt>
lea    0xe3c(%rip),%rdi
call   1050 <printf@plt>
lea    0xf30(%rip),%rdi
call   1030 <puts@plt>
lea    0xf57(%rip),%rdi
call   1030 <puts@plt>
lea    0xe64(%rip),%rdi
call   1050 <printf@plt>
lea    0xe7e(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1070 <scanf@plt>
cmpl   $0x1,0xc(%rsp)
jne    1233 <instrucoes+0xe3>
lea    0xe69(%rip),%rdi
call   1040 <system@plt>
xor    %eax,%eax
call   1060 <play@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [16 x i8] c"\09\09Instrucoes:\0A\0A\00"
@.str.1 = [41 x i8] c"1- Observe todas as jogadas possiveis:\0A\0A\00"
@.str.2 = [18 x i8] c"\09\09 C0 C1 C2\0A\0A\00"
@.str.3 = [9 x i8] c"\09 L0\00"
@.str.4 = [16 x i8] c"\09 00 | 01 | 02\0A\00"
@.str.5 = [18 x i8] c"\09\09--------------\0A\00"
@.str.6 = [9 x i8] c"\09 L1\00"
@.str.7 = [16 x i8] c"\09 10 | 11 | 12\0A\00"
@.str.8 = [9 x i8] c"\09 L2\00"
@.str.9 = [17 x i8] c"\09 20 | 21 | 22\0A\0A\00"
@.str.10 = [76 x i8] c"2- As jogadas sao compostas de 2 numeros sendo o primeiro indicando a linha\00"
@.str.11 = [52 x i8] c"\0A[0,1,2] e um segundo indicando a coluna [0,1,2].\0A\0A\00"
@.str.12 = [54 x i8] c"3- Apos digitar tecle enter para concluir a jogada.\0A\0A\00"
@.str.13 = [38 x i8] c">>> Deseja jogar agora?(1-sim, 2-nao)\00"
@.str.14 = [3 x i8] c"%d\00"
@.str.15 = [4 x i8] c"cls\00"
define void @instrucoes() {
%1 = alloca i32
%2 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.10, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.11, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.12, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0))
%17 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i32* %1)
%18 = load i32, i32* %1
%19 = icmp eq i32 %18, 1
br i1 %19, label %20, label %23
20: ; preds = %0
%21 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0))
%22 = call i32 (...) @play()
br label %23
23: ; preds = %20, %0
ret void
}

LLVM IR (-O2):
@.str.3 = [9 x i8] c"\09 L0\00"
@.str.6 = [9 x i8] c"\09 L1\00"
@.str.8 = [9 x i8] c"\09 L2\00"
@.str.10 = [76 x i8] c"2- As jogadas sao compostas de 2 numeros sendo o primeiro indicando a linha\00"
@.str.13 = [38 x i8] c">>> Deseja jogar agora?(1-sim, 2-nao)\00"
@.str.14 = [3 x i8] c"%d\00"
@.str.15 = [4 x i8] c"cls\00"
@str = [15 x i8] c"\09\09Instrucoes:\0A\00"
@str.16 = [40 x i8] c"1- Observe todas as jogadas possiveis:\0A\00"
@str.17 = [17 x i8] c"\09\09 C0 C1 C2\0A\00"
@str.18 = [15 x i8] c"\09 00 | 01 | 02\00"
@str.20 = [15 x i8] c"\09 10 | 11 | 12\00"
@str.21 = [17 x i8] c"\09\09--------------\00"
@str.22 = [16 x i8] c"\09 20 | 21 | 22\0A\00"
@str.23 = [51 x i8] c"\0A[0,1,2] e um segundo indicando a coluna [0,1,2].\0A\00"
@str.24 = [53 x i8] c"3- Apos digitar tecle enter para concluir a jogada.\0A\00"
define void @instrucoes() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.16, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.17, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.18, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.21, i64 0, i64 0))
%9 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.20, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.21, i64 0, i64 0))
%12 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.22, i64 0, i64 0))
%14 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @.str.10, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.23, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.24, i64 0, i64 0))
%17 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0))
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i32* %1)
%19 = load i32, i32* %1
%20 = icmp eq i32 %19, 1
br i1 %20, label %21, label %24
21: ; preds = %0
%22 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0))
%23 = call i32 (...) @play()
br label %24
24: ; preds = %21, %0
ret void
}