#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*/ printf(char *);
int main() {
  int f[13];
  int count;
  for (count = 0; count < 13; count++) {
    f[count] = count;
    switch (f[count]) {
    case 1: {
      printf("janeiro\n");
      break;
    }
    case 2: {
      printf("fevereiro\n");
    }
    case 3: {
      printf("março\n");
      break;
      break;
    }
    case 4: {
      printf("abril\n");
      break;
    }
    case 5: {
      printf("maio\n");
      break;
    }
    case 6: {
      printf("junho\n");
      break;
    }
    case 7: {
      printf("julho\n");
      break;
    }
    case 8: {
      printf("agosto\n");
      break;
    }
    case 9: {
      printf("setembro\n");
      break;
    }
    case 10: {
      printf("outrubro\n");
      break;
    }
    case 11: {
      printf("novembro\n");
      break;
    }
    case 12: {
      printf("dezembro\n");
      break;
    }
    default: {
      printf("erro\n");
    }
    }
  }
  { return 0; }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x44(%rbp)
cmpl   $0xd,-0x44(%rbp)
jge    124e <main+0x13e>
movslq -0x44(%rbp),%rax
mov    %eax,%ecx
mov    %ecx,-0x40(%rbp,%rax,4)
movslq -0x44(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x50(%rbp)
sub    $0xb,%eax
ja     122f <main+0x11f>
mov    -0x50(%rbp),%rax
lea    0xea1(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xec1(%rip),%rdi
call   1030 <printf@plt>
jmp    123b <main+0x12b>
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
lea    0xeb8(%rip),%rdi
call   1030 <printf@plt>
jmp    123b <main+0x12b>
lea    0xeaf(%rip),%rdi
call   1030 <printf@plt>
jmp    123b <main+0x12b>
lea    0xea5(%rip),%rdi
call   1030 <printf@plt>
jmp    123b <main+0x12b>
lea    0xe9a(%rip),%rdi
call   1030 <printf@plt>
jmp    123b <main+0x12b>
lea    0xe90(%rip),%rdi
call   1030 <printf@plt>
jmp    123b <main+0x12b>
lea    0xe86(%rip),%rdi
call   1030 <printf@plt>
jmp    123b <main+0x12b>
lea    0xe7d(%rip),%rdi
call   1030 <printf@plt>
jmp    123b <main+0x12b>
lea    0xe76(%rip),%rdi
call   1030 <printf@plt>
jmp    123b <main+0x12b>
lea    0xe6f(%rip),%rdi
call   1030 <printf@plt>
jmp    123b <main+0x12b>
lea    0xe68(%rip),%rdi
call   1030 <printf@plt>
jmp    123b <main+0x12b>
lea    0xe61(%rip),%rdi
call   1030 <printf@plt>
jmp    1240 <main+0x130>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1126 <main+0x16>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
xor    %ebx,%ebx
lea    0xf5f(%rip),%r15
lea    0xed5(%rip),%r13
lea    0xf40(%rip),%rbp
lea    0xf09(%rip),%r12
lea    0xef9(%rip),%r14
jmp    1168 <main+0x58>
lea    0xf30(%rip),%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
call   1030 <puts@plt>
add    $0x1,%ebx
lea    -0x1(%rbx),%eax
cmp    $0xb,%eax
ja     1186 <main+0x76>
movslq 0x0(%r13,%rax,4),%rax
add    %r13,%rax
mov    %r15,%rdi
jmp    *%rax
lea    0xee8(%rip),%rdi
jmp    1160 <main+0x50>
lea    0xefe(%rip),%rdi
jmp    1160 <main+0x50>
lea    0xed1(%rip),%rdi
jmp    1160 <main+0x50>
lea    0xec2(%rip),%rdi
jmp    1160 <main+0x50>
lea    0xeb3(%rip),%rdi
jmp    1160 <main+0x50>
lea    0xea3(%rip),%rdi
jmp    1160 <main+0x50>
lea    0xe91(%rip),%rdi
jmp    1160 <main+0x50>
mov    %r12,%rdi
jmp    1160 <main+0x50>
mov    %r14,%rdi
jmp    1160 <main+0x50>
lea    0xe63(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"janeiro\0A\00"
@.str.1 = [11 x i8] c"fevereiro\0A\00"
@.str.2 = [8 x i8] c"mar\C3\A7o\0A\00"
@.str.3 = [7 x i8] c"abril\0A\00"
@.str.4 = [6 x i8] c"maio\0A\00"
@.str.5 = [7 x i8] c"junho\0A\00"
@.str.6 = [7 x i8] c"julho\0A\00"
@.str.7 = [8 x i8] c"agosto\0A\00"
@.str.8 = [10 x i8] c"setembro\0A\00"
@.str.9 = [10 x i8] c"outrubro\0A\00"
@.str.10 = [10 x i8] c"novembro\0A\00"
@.str.11 = [10 x i8] c"dezembro\0A\00"
@.str.12 = [6 x i8] c"erro\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [13 x i32]
%3 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %3
br label %4
4: ; preds = %43, %0
%5 = load i32, i32* %3
%6 = icmp slt i32 %5, 13
br i1 %6, label %7, label %46
7: ; preds = %4
%8 = load i32, i32* %3
%9 = load i32, i32* %3
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [13 x i32], [13 x i32]* %2, i64 0, i64 %10
store i32 %8, i32* %11
%12 = load i32, i32* %3
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [13 x i32], [13 x i32]* %2, i64 0, i64 %13
%15 = load i32, i32* %14
switch i32 %15, label %40 [
i32 1, label %16
i32 2, label %18
i32 3, label %20
i32 4, label %22
i32 5, label %24
i32 6, label %26
i32 7, label %28
i32 8, label %30
i32 9, label %32
i32 10, label %34
i32 11, label %36
i32 12, label %38
]
16: ; preds = %7
%17 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
br label %42
18: ; preds = %7
%19 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
br label %20
20: ; preds = %7, %18
%21 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %42
22: ; preds = %7
%23 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
br label %42
24: ; preds = %7
%25 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %42
26: ; preds = %7
%27 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
br label %42
28: ; preds = %7
%29 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
br label %42
30: ; preds = %7
%31 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
br label %42
32: ; preds = %7
%33 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
br label %42
34: ; preds = %7
%35 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
br label %42
36: ; preds = %7
%37 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0))
br label %42
38: ; preds = %7
%39 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0))
br label %42
40: ; preds = %7
%41 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
br label %42
42: ; preds = %40, %38, %36, %34, %32, %30, %28, %26, %24, %22, %20, %16
br label %43
43: ; preds = %42
%44 = load i32, i32* %3
%45 = add nsw i32 %44, 1
store i32 %45, i32* %3
br label %4
46: ; preds = %4
ret i32 0
}

LLVM IR (-O2):
@str = [9 x i8] c"dezembro\00"
@str.13 = [9 x i8] c"novembro\00"
@str.14 = [9 x i8] c"outrubro\00"
@str.15 = [9 x i8] c"setembro\00"
@str.16 = [7 x i8] c"agosto\00"
@str.17 = [6 x i8] c"julho\00"
@str.18 = [6 x i8] c"junho\00"
@str.19 = [5 x i8] c"maio\00"
@str.20 = [6 x i8] c"abril\00"
@str.21 = [7 x i8] c"mar\C3\A7o\00"
@str.22 = [10 x i8] c"fevereiro\00"
@str.23 = [8 x i8] c"janeiro\00"
@str.24 = [5 x i8] c"erro\00"
define i32 @main() {
br label %1
1: ; preds = %15, %0
%2 = phi i32 [ 0, %0 ], [ %18, %15 ]
switch i32 %2, label %14 [
i32 1, label %15
i32 2, label %3
i32 3, label %5
i32 4, label %6
i32 5, label %7
i32 6, label %8
i32 7, label %9
i32 8, label %10
i32 9, label %11
i32 10, label %12
i32 11, label %13
i32 12, label %19
]
3: ; preds = %1
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.22, i64 0, i64 0))
br label %5
5: ; preds = %1, %3
br label %15
6: ; preds = %1
br label %15
7: ; preds = %1
br label %15
8: ; preds = %1
br label %15
9: ; preds = %1
br label %15
10: ; preds = %1
br label %15
11: ; preds = %1
br label %15
12: ; preds = %1
br label %15
13: ; preds = %1
br label %15
14: ; preds = %1
br label %15
15: ; preds = %1, %5, %6, %7, %8, %9, %10, %11, %12, %13, %14
%16 = phi i8* [ getelementptr inbounds ([7 x i8], [7 x i8]* @str.21, i64 0, i64 0), %5 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @str.20, i64 0, i64 0), %6 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @str.19, i64 0, i64 0), %7 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @str.18, i64 0, i64 0), %8 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @str.17, i64 0, i64 0), %9 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @str.16, i64 0, i64 0), %10 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @str.15, i64 0, i64 0), %11 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @str.14, i64 0, i64 0), %12 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @str.13, i64 0, i64 0), %13 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @str.24, i64 0, i64 0), %14 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @str.23, i64 0, i64 0), %1 ]
%17 = tail call i32 @puts(i8* dereferenceable(1) %16)
%18 = add nuw nsw i32 %2, 1
br label %1
19: ; preds = %1
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
ret i32 0
}