#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*/ cargar();
int /*<<< orphan*/ fflush_();
int /*<<< orphan*/ menu();
int /*<<< orphan*/ punto_11();
int /*<<< orphan*/ punto_12();
int /*<<< orphan*/ punto_13();
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ scanf(char *, int *);
int main(void) {
  int op;
  do {
    menu();
    scanf("%d", &op);
    puts("\n\n");
    fflush_();
    switch (op) {
    case 1:
      cargar();
      break;
    case 2:
      punto_11();
      break;
    case 3:
      punto_12();
      break;
    case 4:
      punto_13();
      break;
    case 5:
      break;
    }
  } while (op != 5);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
mov    %al,-0x11(%rbp)
call   1050 <menu@plt>
lea    0xe74(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1090 <scanf@plt>
lea    0xe67(%rip),%rdi
call   1030 <puts@plt>
mov    -0x11(%rbp),%al
call   1060 <fflush_@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x4,%eax
ja     121b <main+0x9b>
mov    -0x10(%rbp),%rax
lea    0xe23(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x0,%al
call   10a0 <cargar@plt>
jmp    121b <main+0x9b>
mov    $0x0,%al
call   1080 <punto_11@plt>
jmp    121b <main+0x9b>
mov    $0x0,%al
call   1040 <punto_12@plt>
jmp    121b <main+0x9b>
mov    $0x0,%al
call   1070 <punto_13@plt>
jmp    121b <main+0x9b>
jmp    121b <main+0x9b>
jmp    1220 <main+0xa0>
cmpl   $0x5,-0x8(%rbp)
jne    118f <main+0xf>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
lea    0xe81(%rip),%r14
lea    0x4(%rsp),%r15
lea    0xe78(%rip),%r12
lea    0xe5e(%rip),%rbx
jmp    11c0 <main+0x40>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xor    %eax,%eax
call   1070 <punto_13@plt>
mov    0x4(%rsp),%eax
cmp    $0x5,%eax
je     1219 <main+0x99>
xor    %eax,%eax
call   1050 <menu@plt>
mov    %r14,%rdi
mov    %r15,%rsi
call   1090 <scanf@plt>
mov    %r12,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1060 <fflush_@plt>
mov    0x4(%rsp),%eax
lea    -0x1(%rax),%ecx
cmp    $0x3,%ecx
ja     11bb <main+0x3b>
movslq (%rbx,%rcx,4),%rax
add    %rbx,%rax
jmp    *%rax
xor    %eax,%eax
call   10a0 <cargar@plt>
jmp    11b7 <main+0x37>
nop
xor    %eax,%eax
call   1080 <punto_11@plt>
jmp    11b7 <main+0x37>
nopl   0x0(%rax)
xor    %eax,%eax
call   1040 <punto_12@plt>
jmp    11b7 <main+0x37>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c"\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
br label %3
3: ; preds = %19, %0
%4 = call i32 (...) @menu()
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%6 = call i32 @puts(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 (...) @fflush_()
%8 = load i32, i32* %2
switch i32 %8, label %18 [
i32 1, label %9
i32 2, label %11
i32 3, label %13
i32 4, label %15
i32 5, label %17
]
9: ; preds = %3
%10 = call i32 (...) @cargar()
br label %18
11: ; preds = %3
%12 = call i32 (...) @punto_11()
br label %18
13: ; preds = %3
%14 = call i32 (...) @punto_12()
br label %18
15: ; preds = %3
%16 = call i32 (...) @punto_13()
br label %18
17: ; preds = %3
br label %18
18: ; preds = %3, %17, %15, %13, %11, %9
br label %19
19: ; preds = %18
%20 = load i32, i32* %2
%21 = icmp ne i32 %20, 5
br i1 %21, label %3, label %22
22: ; preds = %19
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c"\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
br label %3
3: ; preds = %19, %0
%4 = call i32 (...) @menu()
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%6 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 (...) @fflush_()
%8 = load i32, i32* %1
switch i32 %8, label %19 [
i32 1, label %9
i32 2, label %11
i32 3, label %13
i32 4, label %15
]
9: ; preds = %3
%10 = call i32 (...) @cargar()
br label %17
11: ; preds = %3
%12 = call i32 (...) @punto_11()
br label %17
13: ; preds = %3
%14 = call i32 (...) @punto_12()
br label %17
15: ; preds = %3
%16 = call i32 (...) @punto_13()
br label %17
17: ; preds = %15, %13, %11, %9
%18 = load i32, i32* %1
br label %19
19: ; preds = %17, %3
%20 = phi i32 [ %18, %17 ], [ %8, %3 ]
%21 = icmp eq i32 %20, 5
br i1 %21, label %22, label %3
22: ; preds = %19
ret i32 0
}