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


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
cmpl   $0x3d,-0x8(%rbp)
jne    116a <main+0x3a>
lea    0xea3(%rip),%rdi
call   1040 <printf@plt>
jmp    1256 <main+0x126>
cmpl   $0x47,-0x8(%rbp)
jne    1185 <main+0x55>
lea    0xe92(%rip),%rdi
call   1040 <printf@plt>
jmp    1251 <main+0x121>
cmpl   $0xb,-0x8(%rbp)
jne    11a0 <main+0x70>
lea    0xe81(%rip),%rdi
call   1040 <printf@plt>
jmp    124c <main+0x11c>
cmpl   $0x15,-0x8(%rbp)
jne    11bb <main+0x8b>
lea    0xe71(%rip),%rdi
call   1040 <printf@plt>
jmp    1247 <main+0x117>
cmpl   $0x20,-0x8(%rbp)
jne    11d6 <main+0xa6>
lea    0xe66(%rip),%rdi
call   1040 <printf@plt>
jmp    1242 <main+0x112>
cmpl   $0x13,-0x8(%rbp)
jne    11f1 <main+0xc1>
lea    0xe59(%rip),%rdi
call   1040 <printf@plt>
jmp    123d <main+0x10d>
cmpl   $0x1b,-0x8(%rbp)
jne    120c <main+0xdc>
lea    0xe48(%rip),%rdi
call   1040 <printf@plt>
jmp    1238 <main+0x108>
cmpl   $0x1f,-0x8(%rbp)
jne    1227 <main+0xf7>
lea    0xe36(%rip),%rdi
call   1040 <printf@plt>
jmp    1233 <main+0x103>
lea    0xe35(%rip),%rdi
call   1040 <printf@plt>
jmp    1238 <main+0x108>
jmp    123d <main+0x10d>
jmp    1242 <main+0x112>
jmp    1247 <main+0x117>
jmp    124c <main+0x11c>
jmp    1251 <main+0x121>
jmp    1256 <main+0x126>
lea    0xe1a(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xfbc(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1050 <scanf@plt>
mov    0x4(%rsp),%eax
add    $0xfffffff5,%eax
cmp    $0x3c,%eax
ja     116e <main+0x3e>
lea    0x100a(%rip),%rdi
lea    0xea4(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xfe0(%rip),%rdi
jmp    11ab <main+0x7b>
lea    0xf88(%rip),%rdi
jmp    11ab <main+0x7b>
lea    0xfa9(%rip),%rdi
jmp    11ab <main+0x7b>
lea    0xfb6(%rip),%rdi
jmp    11ab <main+0x7b>
lea    0xf8f(%rip),%rdi
jmp    11ab <main+0x7b>
lea    0xf77(%rip),%rdi
jmp    11ab <main+0x7b>
lea    0xf8e(%rip),%rdi
jmp    11ab <main+0x7b>
lea    0xfab(%rip),%rdi
call   1030 <puts@plt>
lea    0xf40(%rip),%rdi
call   1040 <system@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"
@.str.10 = [6 x i8] c"pause\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, 61
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
br label %52
8: ; preds = %0
%9 = load i32, i32* %2
%10 = icmp eq i32 %9, 71
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, 11
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
br label %50
18: ; preds = %13
%19 = load i32, i32* %2
%20 = icmp eq i32 %19, 21
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
br label %49
23: ; preds = %18
%24 = load i32, i32* %2
%25 = icmp eq i32 %24, 32
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
br label %48
28: ; preds = %23
%29 = load i32, i32* %2
%30 = icmp eq i32 %29, 19
br i1 %30, label %31, label %33
31: ; preds = %28
%32 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
br label %47
33: ; preds = %28
%34 = load i32, i32* %2
%35 = icmp eq i32 %34, 27
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
br label %46
38: ; preds = %33
%39 = load i32, i32* %2
%40 = icmp eq i32 %39, 31
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 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 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
ret i32 0
}

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