#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*/ Parentesis(char *);
int /*<<< orphan*/ Posfijo(char *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, char *);
int /*<<< orphan*/ system(char *);
main() {
  char expresion[100];
  printf(" INFIJO ======> POSFIJO\nINTRODUZCA LA CADENA A TRANSFORMAR\nNOTA: "
         "DENTRO DE LA EXPRESION SOLO PUEDES USAR LETRA MAYUSCULAS\n ");
  scanf("%s", expresion);
  Parentesis(expresion);
  Posfijo(expresion);
  system("PAUSE");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
lea    0xea1(%rip),%rdi
call   1040 <printf@plt>
lea    -0x70(%rbp),%rsi
lea    0xf0d(%rip),%rdi
call   1060 <scanf@plt>
lea    -0x70(%rbp),%rdi
call   1070 <Parentesis@plt>
lea    -0x70(%rbp),%rdi
call   1050 <Posfijo@plt>
lea    0xef2(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x70,%rsp
lea    0xea4(%rip),%rdi
call   1040 <printf@plt>
lea    0xf14(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
call   1060 <scanf@plt>
mov    %rbx,%rdi
call   1070 <Parentesis@plt>
mov    %rbx,%rdi
call   1050 <Posfijo@plt>
lea    0xef5(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [124 x i8] c" INFIJO ======> POSFIJO\0AINTRODUZCA LA CADENA A TRANSFORMAR\0ANOTA: DENTRO DE LA EXPRESION SOLO PUEDES USAR LETRA MAYUSCULAS\0A \00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [6 x i8] c"PAUSE\00"
define i32 @main() {
%1 = alloca [100 x i8]
%2 = call i32 @printf(i8* getelementptr inbounds ([124 x i8], [124 x i8]* @.str, i64 0, i64 0))
%3 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%5 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%6 = call i32 @Parentesis(i8* %5)
%7 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%8 = call i32 @Posfijo(i8* %7)
%9 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [124 x i8] c" INFIJO ======> POSFIJO\0AINTRODUZCA LA CADENA A TRANSFORMAR\0ANOTA: DENTRO DE LA EXPRESION SOLO PUEDES USAR LETRA MAYUSCULAS\0A \00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [6 x i8] c"PAUSE\00"
define i32 @main() {
%1 = alloca [100 x i8]
%2 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([124 x i8], [124 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%5 = call i32 @Parentesis(i8* %2)
%6 = call i32 @Posfijo(i8* %2)
%7 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}