#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 /*<<< orphan*/ scanf(char *, int *);
main() {
  int cod;
  scanf("%d", &cod);
  switch (cod) {
  case 61:
    printf("Brasilia\n");
    break;
  case 71:
    printf("Salvador\n");
    break;
  case 11:
    printf("Sao Paulo\n");
    break;
  case 21:
    printf("Rio de Janeiro\n");
    break;
  case 32:
    printf("Juiz de Fora\n");
    break;
  case 19:
    printf("Campinas\n");
    break;
  case 27:
    printf("Vitoria\n");
    break;
  case 31:
    printf("Belo Horizonte\n");
    break;
  default:
    printf("DDD nao cadastrado\n");
    break;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xfbe(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
add    $0xfffffff5,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x3c,%eax
ja     11f0 <main+0xd0>
mov    -0x10(%rbp),%rax
lea    0xea1(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf88(%rip),%rdi
call   1030 <printf@plt>
jmp    11fc <main+0xdc>
lea    0xf81(%rip),%rdi
call   1030 <printf@plt>
jmp    11fc <main+0xdc>
lea    0xf7a(%rip),%rdi
call   1030 <printf@plt>
jmp    11fc <main+0xdc>
lea    0xf74(%rip),%rdi
call   1030 <printf@plt>
jmp    11fc <main+0xdc>
lea    0xf73(%rip),%rdi
call   1030 <printf@plt>
jmp    11fc <main+0xdc>
lea    0xf70(%rip),%rdi
call   1030 <printf@plt>
jmp    11fc <main+0xdc>
lea    0xf69(%rip),%rdi
call   1030 <printf@plt>
jmp    11fc <main+0xdc>
lea    0xf61(%rip),%rdi
call   1030 <printf@plt>
jmp    11fc <main+0xdc>
lea    0xf60(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xfcc(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
add    $0xfffffff5,%eax
cmp    $0x3c,%eax
ja     115e <main+0x3e>
lea    0x1001(%rip),%rdi
lea    0xeb4(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xfd7(%rip),%rdi
jmp    119b <main+0x7b>
lea    0xfea(%rip),%rdi
jmp    119b <main+0x7b>
lea    0xfa0(%rip),%rdi
jmp    119b <main+0x7b>
lea    0xfad(%rip),%rdi
jmp    119b <main+0x7b>
lea    0xf86(%rip),%rdi
jmp    119b <main+0x7b>
lea    0xf6e(%rip),%rdi
jmp    119b <main+0x7b>
lea    0xf85(%rip),%rdi
jmp    119b <main+0x7b>
lea    0xfa2(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [10 x i8] c"Brasilia\0A\00"
@.str.2 = [10 x i8] c"Salvador\0A\00"
@.str.3 = [11 x i8] c"Sao Paulo\0A\00"
@.str.4 = [16 x i8] c"Rio de Janeiro\0A\00"
@.str.5 = [14 x i8] c"Juiz de Fora\0A\00"
@.str.6 = [10 x i8] c"Campinas\0A\00"
@.str.7 = [9 x i8] c"Vitoria\0A\00"
@.str.8 = [16 x i8] c"Belo Horizonte\0A\00"
@.str.9 = [20 x i8] c"DDD nao cadastrado\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%4 = load i32, i32* %2
switch i32 %4, label %21 [
i32 61, label %5
i32 71, label %7
i32 11, label %9
i32 21, label %11
i32 32, label %13
i32 19, label %15
i32 27, label %17
i32 31, label %19
]
5: ; preds = %0
%6 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
br label %23
7: ; preds = %0
%8 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
br label %23
9: ; preds = %0
%10 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
br label %23
11: ; preds = %0
%12 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
br label %23
13: ; preds = %0
%14 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
br label %23
15: ; preds = %0
%16 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
br label %23
17: ; preds = %0
%18 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
br label %23
19: ; preds = %0
%20 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0))
br label %23
21: ; preds = %0
%22 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0))
br label %23
23: ; preds = %21, %19, %17, %15, %13, %11, %9, %7, %5
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@str = [15 x i8] c"Belo Horizonte\00"
@str.10 = [8 x i8] c"Vitoria\00"
@str.11 = [9 x i8] c"Campinas\00"
@str.12 = [13 x i8] c"Juiz de Fora\00"
@str.13 = [15 x i8] c"Rio de Janeiro\00"
@str.14 = [10 x i8] c"Sao Paulo\00"
@str.15 = [9 x i8] c"Salvador\00"
@str.16 = [9 x i8] c"Brasilia\00"
@str.17 = [19 x i8] c"DDD nao cadastrado\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
switch i32 %4, label %12 [
i32 61, label %13
i32 71, label %5
i32 11, label %6
i32 21, label %7
i32 32, label %8
i32 19, label %9
i32 27, label %10
i32 31, label %11
]
5: ; preds = %0
br label %13
6: ; preds = %0
br label %13
7: ; preds = %0
br label %13
8: ; preds = %0
br label %13
9: ; preds = %0
br label %13
10: ; preds = %0
br label %13
11: ; preds = %0
br label %13
12: ; preds = %0
br label %13
13: ; preds = %0, %12, %11, %10, %9, %8, %7, %6, %5
%14 = phi i8* [ getelementptr inbounds ([19 x i8], [19 x i8]* @str.17, i64 0, i64 0), %12 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0), %11 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @str.10, i64 0, i64 0), %10 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @str.11, i64 0, i64 0), %9 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @str.12, i64 0, i64 0), %8 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @str.13, i64 0, i64 0), %7 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @str.14, i64 0, i64 0), %6 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @str.15, i64 0, i64 0), %5 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @str.16, i64 0, i64 0), %0 ]
%15 = call i32 @puts(i8* dereferenceable(1) %14)
ret i32 0
}