#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 */
char ler_intervalo(int, int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ system(char *);
char inicio_real() {
  system("clear");
  printf("Ha dois modos para inicio do jogo Caminho com Numeros Primos:\n");
  printf("\t1 - Leitura do arquivo 'entradaProj3.txt';\n");
  printf("\t2 - Configuracao inicial do jogo por seu desejo.\n");
  printf("\nDadas as opcoes, qual voce escolhe?\n");
  return ler_intervalo(1, 2);
}


x86 assembly (clang, -O0):
<inicio_real>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1040 <system@plt>
lea    0xebf(%rip),%rdi
call   1050 <printf@plt>
lea    0xef2(%rip),%rdi
call   1050 <printf@plt>
lea    0xf13(%rip),%rdi
call   1050 <printf@plt>
lea    0xf3a(%rip),%rdi
call   1050 <printf@plt>
mov    $0x1,%edi
mov    $0x2,%esi
call   1030 <ler_intervalo@plt>
movsbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<inicio_real>:
push   %rax
lea    0xec8(%rip),%rdi
call   1050 <system@plt>
lea    0xec2(%rip),%rdi
call   1030 <puts@plt>
lea    0xef4(%rip),%rdi
call   1030 <puts@plt>
lea    0xf14(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3a(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
mov    $0x2,%esi
pop    %rax
jmp    1040 <ler_intervalo@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"clear\00"
@.str.1 = [63 x i8] c"Ha dois modos para inicio do jogo Caminho com Numeros Primos:\0A\00"
@.str.2 = [45 x i8] c"\091 - Leitura do arquivo 'entradaProj3.txt';\0A\00"
@.str.3 = [51 x i8] c"\092 - Configuracao inicial do jogo por seu desejo.\0A\00"
@.str.4 = [38 x i8] c"\0ADadas as opcoes, qual voce escolhe?\0A\00"
define signext i8 @inicio_real() {
%1 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%6 = call signext i8 @ler_intervalo(i32 1, i32 2)
ret i8 %6
}

LLVM IR (-O2):
@.str = [6 x i8] c"clear\00"
@str = [62 x i8] c"Ha dois modos para inicio do jogo Caminho com Numeros Primos:\00"
@str.5 = [44 x i8] c"\091 - Leitura do arquivo 'entradaProj3.txt';\00"
@str.6 = [50 x i8] c"\092 - Configuracao inicial do jogo por seu desejo.\00"
@str.7 = [37 x i8] c"\0ADadas as opcoes, qual voce escolhe?\00"
define signext i8 @inicio_real() {
%1 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.5, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.6, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.7, i64 0, i64 0))
%6 = tail call signext i8 @ler_intervalo(i32 1, i32 2)
ret i8 %6
}