#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*/ puts(char *);
int main() {
  int variable = 5;
  switch (variable) {
  case 0:
    puts("Zero");
    break;
  case 5:
    puts("Five");
    break;
  case 10:
    puts("Ten");
    break;
  default:
    puts("Other");
  }
  switch (variable) {
  case 0:
    puts("0");
    break;
  case 100:
    puts("100");
    break;
  case 1000:
    puts("1000");
    break;
  default:
    puts("x");
  }
  switch (variable) {
  case 0:
    puts("Zero");
  case 1:
    puts("One");
  case 2:
    puts("Two");
  }
  switch (variable) {
  case 1:
  case 2:
  case 3:
    puts("[1-3]");
    break;
  case 4:
  case 5:
  case 6:
    puts("[4-6]");
    break;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x5,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
test   %eax,%eax
je     115b <main+0x4b>
jmp    1139 <main+0x29>
mov    -0xc(%rbp),%eax
sub    $0x5,%eax
je     116c <main+0x5c>
jmp    114a <main+0x3a>
mov    -0xc(%rbp),%eax
sub    $0xa,%eax
je     117d <main+0x6d>
jmp    118e <main+0x7e>
lea    0xe9e(%rip),%rdi
call   1030 <puts@plt>
jmp    119a <main+0x8a>
lea    0xe92(%rip),%rdi
call   1030 <puts@plt>
jmp    119a <main+0x8a>
lea    0xe86(%rip),%rdi
call   1030 <puts@plt>
jmp    119a <main+0x8a>
lea    0xe79(%rip),%rdi
call   1030 <puts@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
test   %eax,%eax
je     11d1 <main+0xc1>
jmp    11ad <main+0x9d>
mov    -0x10(%rbp),%eax
sub    $0x64,%eax
je     11e2 <main+0xd2>
jmp    11be <main+0xae>
mov    -0x10(%rbp),%eax
sub    $0x3e8,%eax
je     11f3 <main+0xe3>
jmp    1204 <main+0xf4>
lea    0xe43(%rip),%rdi
call   1030 <puts@plt>
jmp    1210 <main+0x100>
lea    0xe2b(%rip),%rdi
call   1030 <puts@plt>
jmp    1210 <main+0x100>
lea    0xe1e(%rip),%rdi
call   1030 <puts@plt>
jmp    1210 <main+0x100>
lea    0xe12(%rip),%rdi
call   1030 <puts@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
test   %eax,%eax
je     1245 <main+0x135>
jmp    1223 <main+0x113>
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
je     1251 <main+0x141>
jmp    1234 <main+0x124>
mov    -0x14(%rbp),%eax
sub    $0x2,%eax
je     125d <main+0x14d>
jmp    1269 <main+0x159>
lea    0xdb4(%rip),%rdi
call   1030 <puts@plt>
lea    0xdc7(%rip),%rdi
call   1030 <puts@plt>
lea    0xdbf(%rip),%rdi
call   1030 <puts@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x18(%rbp)
add    $0xffffffff,%eax
sub    $0x3,%eax
jb     1294 <main+0x184>
jmp    1280 <main+0x170>
mov    -0x18(%rbp),%eax
add    $0xfffffffc,%eax
sub    $0x3,%eax
jb     12a5 <main+0x195>
jmp    12b1 <main+0x1a1>
lea    0xd8c(%rip),%rdi
call   1030 <puts@plt>
jmp    12b1 <main+0x1a1>
lea    0xd81(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xee1(%rip),%rdi
call   1030 <puts@plt>
lea    0xed7(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"Zero\00"
@.str.1 = [5 x i8] c"Five\00"
@.str.2 = [4 x i8] c"Ten\00"
@.str.3 = [6 x i8] c"Other\00"
@.str.4 = [2 x i8] c"0\00"
@.str.5 = [4 x i8] c"100\00"
@.str.6 = [5 x i8] c"1000\00"
@.str.7 = [2 x i8] c"x\00"
@.str.8 = [4 x i8] c"One\00"
@.str.9 = [4 x i8] c"Two\00"
@.str.10 = [6 x i8] c"[1-3]\00"
@.str.11 = [6 x i8] c"[4-6]\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 5, i32* %2
%3 = load i32, i32* %2
switch i32 %3, label %10 [
i32 0, label %4
i32 5, label %6
i32 10, label %8
]
4: ; preds = %0
%5 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %12
6: ; preds = %0
%7 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %12
8: ; preds = %0
%9 = call i32 @puts(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
br label %12
10: ; preds = %0
%11 = call i32 @puts(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
br label %12
12: ; preds = %10, %8, %6, %4
%13 = load i32, i32* %2
switch i32 %13, label %20 [
i32 0, label %14
i32 100, label %16
i32 1000, label %18
]
14: ; preds = %12
%15 = call i32 @puts(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %22
16: ; preds = %12
%17 = call i32 @puts(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
br label %22
18: ; preds = %12
%19 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %22
20: ; preds = %12
%21 = call i32 @puts(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %22
22: ; preds = %20, %18, %16, %14
%23 = load i32, i32* %2
switch i32 %23, label %30 [
i32 0, label %24
i32 1, label %26
i32 2, label %28
]
24: ; preds = %22
%25 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %26
26: ; preds = %22, %24
%27 = call i32 @puts(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
br label %28
28: ; preds = %22, %26
%29 = call i32 @puts(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
br label %30
30: ; preds = %28, %22
%31 = load i32, i32* %2
switch i32 %31, label %36 [
i32 1, label %32
i32 2, label %32
i32 3, label %32
i32 4, label %34
i32 5, label %34
i32 6, label %34
]
32: ; preds = %30, %30, %30
%33 = call i32 @puts(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
br label %36
34: ; preds = %30, %30, %30
%35 = call i32 @puts(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
br label %36
36: ; preds = %30, %34, %32
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [5 x i8] c"Five\00"
@.str.7 = [2 x i8] c"x\00"
@.str.11 = [6 x i8] c"[4-6]\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
ret i32 0
}