#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*/ puts(char *);
void listarFuncoes() {
  puts("Valores válidos para funcao:");
  puts("-- f(x) = 1 + x \t\t\t-> 1");
  puts("-- f(x) = sqrt(1 + x^2) \t\t-> 2");
  puts("-- f(x) = sqrt(1 + x^4) \t\t-> 3");
  puts("-- f(x) = sen(x^2) \t\t\t-> 4");
  puts("-- f(x) = cos(e^(-x)) * (0.005 * x^3 + 1)\t-> 5");
}


x86 assembly (clang, -O0):
<listarFuncoes>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <puts@plt>
lea    0xef7(%rip),%rdi
call   1030 <puts@plt>
lea    0xf03(%rip),%rdi
call   1030 <puts@plt>
lea    0xf16(%rip),%rdi
call   1030 <puts@plt>
lea    0xf29(%rip),%rdi
call   1030 <puts@plt>
lea    0xf38(%rip),%rdi
call   1030 <puts@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<listarFuncoes>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xefa(%rip),%rdi
call   1030 <puts@plt>
lea    0xf06(%rip),%rdi
call   1030 <puts@plt>
lea    0xf19(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3b(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [30 x i8] c"Valores v\C3\A1lidos para funcao:\00"
@.str.1 = [24 x i8] c"-- f(x) = 1 + x \09\09\09-> 1\00"
@.str.2 = [31 x i8] c"-- f(x) = sqrt(1 + x^2) \09\09-> 2\00"
@.str.3 = [31 x i8] c"-- f(x) = sqrt(1 + x^4) \09\09-> 3\00"
@.str.4 = [27 x i8] c"-- f(x) = sen(x^2) \09\09\09-> 4\00"
@.str.5 = [47 x i8] c"-- f(x) = cos(e^(-x)) * (0.005 * x^3 + 1)\09-> 5\00"
define void @listarFuncoes() {
%1 = call i32 @puts(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @puts(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @puts(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @puts(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @puts(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @puts(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [30 x i8] c"Valores v\C3\A1lidos para funcao:\00"
@.str.1 = [24 x i8] c"-- f(x) = 1 + x \09\09\09-> 1\00"
@.str.2 = [31 x i8] c"-- f(x) = sqrt(1 + x^2) \09\09-> 2\00"
@.str.3 = [31 x i8] c"-- f(x) = sqrt(1 + x^4) \09\09-> 3\00"
@.str.4 = [27 x i8] c"-- f(x) = sen(x^2) \09\09\09-> 4\00"
@.str.5 = [47 x i8] c"-- f(x) = cos(e^(-x)) * (0.005 * x^3 + 1)\09-> 5\00"
define void @listarFuncoes() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.5, i64 0, i64 0))
ret void
}