#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 *);
int main() {
  int d;
  scanf("%i", &d);
  if (d == 11)
    printf("Sao Paulo\n");
  else if (d == 19)
    printf("Campinas\n");
  else if (d == 21)
    printf("Rio de Janeiro\n");
  else if (d == 27)
    printf("Vitoria\n");
  else if (d == 31)
    printf("Belo Horizonte\n");
  else if (d == 32)
    printf("Juiz de Fora\n");
  else if (d == 61)
    printf("Brasilia\n");
  else if (d == 71)
    printf("Salvador\n");
  else
    printf("DDD nao cadastrado\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0xb,-0x8(%rbp)
jne    115a <main+0x3a>
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
jmp    1246 <main+0x126>
cmpl   $0x13,-0x8(%rbp)
jne    1175 <main+0x55>
lea    0xea3(%rip),%rdi
call   1030 <printf@plt>
jmp    1241 <main+0x121>
cmpl   $0x15,-0x8(%rbp)
jne    1190 <main+0x70>
lea    0xe92(%rip),%rdi
call   1030 <printf@plt>
jmp    123c <main+0x11c>
cmpl   $0x1b,-0x8(%rbp)
jne    11ab <main+0x8b>
lea    0xe87(%rip),%rdi
call   1030 <printf@plt>
jmp    1237 <main+0x117>
cmpl   $0x1f,-0x8(%rbp)
jne    11c6 <main+0xa6>
lea    0xe75(%rip),%rdi
call   1030 <printf@plt>
jmp    1232 <main+0x112>
cmpl   $0x20,-0x8(%rbp)
jne    11e1 <main+0xc1>
lea    0xe6a(%rip),%rdi
call   1030 <printf@plt>
jmp    122d <main+0x10d>
cmpl   $0x3d,-0x8(%rbp)
jne    11fc <main+0xdc>
lea    0xe5d(%rip),%rdi
call   1030 <printf@plt>
jmp    1228 <main+0x108>
cmpl   $0x47,-0x8(%rbp)
jne    1217 <main+0xf7>
lea    0xe4c(%rip),%rdi
call   1030 <printf@plt>
jmp    1223 <main+0x103>
lea    0xe45(%rip),%rdi
call   1030 <printf@plt>
jmp    1228 <main+0x108>
jmp    122d <main+0x10d>
jmp    1232 <main+0x112>
jmp    1237 <main+0x117>
jmp    123c <main+0x11c>
jmp    1241 <main+0x121>
jmp    1246 <main+0x126>
mov    -0x4(%rbp),%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    0x1013(%rip),%rdi
lea    0xeb4(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xff3(%rip),%rdi
jmp    119b <main+0x7b>
lea    0xf92(%rip),%rdi
jmp    119b <main+0x7b>
lea    0xfd2(%rip),%rdi
jmp    119b <main+0x7b>
lea    0xfc1(%rip),%rdi
jmp    119b <main+0x7b>
lea    0xfa9(%rip),%rdi
jmp    119b <main+0x7b>
lea    0xf93(%rip),%rdi
jmp    119b <main+0x7b>
lea    0xf81(%rip),%rdi
jmp    119b <main+0x7b>
lea    0xf6f(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%i\00"
@.str.1 = [11 x i8] c"Sao Paulo\0A\00"
@.str.2 = [10 x i8] c"Campinas\0A\00"
@.str.3 = [16 x i8] c"Rio de Janeiro\0A\00"
@.str.4 = [9 x i8] c"Vitoria\0A\00"
@.str.5 = [16 x i8] c"Belo Horizonte\0A\00"
@.str.6 = [14 x i8] c"Juiz de Fora\0A\00"
@.str.7 = [10 x i8] c"Brasilia\0A\00"
@.str.8 = [10 x i8] c"Salvador\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
%5 = icmp eq i32 %4, 11
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
br label %52
8: ; preds = %0
%9 = load i32, i32* %2
%10 = icmp eq i32 %9, 19
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
br label %51
13: ; preds = %8
%14 = load i32, i32* %2
%15 = icmp eq i32 %14, 21
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
br label %50
18: ; preds = %13
%19 = load i32, i32* %2
%20 = icmp eq i32 %19, 27
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
br label %49
23: ; preds = %18
%24 = load i32, i32* %2
%25 = icmp eq i32 %24, 31
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
br label %48
28: ; preds = %23
%29 = load i32, i32* %2
%30 = icmp eq i32 %29, 32
br i1 %30, label %31, label %33
31: ; preds = %28
%32 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0))
br label %47
33: ; preds = %28
%34 = load i32, i32* %2
%35 = icmp eq i32 %34, 61
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
br label %46
38: ; preds = %33
%39 = load i32, i32* %2
%40 = icmp eq i32 %39, 71
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
br label %45
43: ; preds = %38
%44 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0))
br label %45
45: ; preds = %43, %41
br label %46
46: ; preds = %45, %36
br label %47
47: ; preds = %46, %31
br label %48
48: ; preds = %47, %26
br label %49
49: ; preds = %48, %21
br label %50
50: ; preds = %49, %16
br label %51
51: ; preds = %50, %11
br label %52
52: ; preds = %51, %6
%53 = load i32, i32* %1
ret i32 %53
}

LLVM IR (-O2):
@.str = [3 x i8] c"%i\00"
@str = [19 x i8] c"DDD nao cadastrado\00"
@str.10 = [9 x i8] c"Salvador\00"
@str.11 = [9 x i8] c"Brasilia\00"
@str.12 = [13 x i8] c"Juiz de Fora\00"
@str.13 = [15 x i8] c"Belo Horizonte\00"
@str.14 = [8 x i8] c"Vitoria\00"
@str.15 = [15 x i8] c"Rio de Janeiro\00"
@str.16 = [9 x i8] c"Campinas\00"
@str.17 = [10 x i8] c"Sao Paulo\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 11, label %13
i32 19, label %5
i32 21, label %6
i32 27, label %7
i32 31, label %8
i32 32, label %9
i32 61, label %10
i32 71, 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, %5, %7, %9, %11, %12, %10, %8, %6
%14 = phi i8* [ getelementptr inbounds ([9 x i8], [9 x i8]* @str.16, i64 0, i64 0), %5 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @str.14, i64 0, i64 0), %7 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @str.12, i64 0, i64 0), %9 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @str.10, i64 0, i64 0), %11 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0), %12 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @str.11, i64 0, i64 0), %10 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @str.13, i64 0, i64 0), %8 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @str.15, i64 0, i64 0), %6 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @str.17, i64 0, i64 0), %0 ]
%15 = call i32 @puts(i8* dereferenceable(1) %14)
ret i32 0
}