#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 print_flick(int val) {
  switch (val) {
  case 0:
    printf("\033[40;1m%s\033[0m", "  ");
    break;
  case 1:
  case 8:
    printf("\033[44;30;1m%2d\033[0m", val);
    break;
  case 2:
  case 7:
    printf("\033[42;30;1m%2d\033[0m", val);
    break;
  case 3:
  case 6:
    printf("\033[43;30;1m%2d\033[0m", val);
    break;
  case 4:
  case 5:
    printf("\033[41;30;1m%2d\033[0m", val);
    break;
  case 456:
    printf("\033[31;44;1m%2s\033[0m", "F");
    break;
  case 123:
    printf("\033[40;1m%2s\033[0m", "  ");
    break;
  case 1000:
    printf("\033[41;1m%2s\033[0m", "*");
  }
}


x86 assembly (clang, -O0):
<print_flick>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
test   %eax,%eax
je     11df <print_flick+0xcf>
jmp    112e <print_flick+0x1e>
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
je     11f9 <print_flick+0xe9>
jmp    113f <print_flick+0x2f>
mov    -0xc(%rbp),%eax
sub    $0x2,%eax
je     120f <print_flick+0xff>
jmp    1150 <print_flick+0x40>
mov    -0xc(%rbp),%eax
sub    $0x3,%eax
je     1225 <print_flick+0x115>
jmp    1161 <print_flick+0x51>
mov    -0xc(%rbp),%eax
add    $0xfffffffc,%eax
sub    $0x2,%eax
jb     123b <print_flick+0x12b>
jmp    1175 <print_flick+0x65>
mov    -0xc(%rbp),%eax
sub    $0x6,%eax
je     1225 <print_flick+0x115>
jmp    1186 <print_flick+0x76>
mov    -0xc(%rbp),%eax
sub    $0x7,%eax
je     120f <print_flick+0xff>
jmp    1197 <print_flick+0x87>
mov    -0xc(%rbp),%eax
sub    $0x8,%eax
je     11f9 <print_flick+0xe9>
jmp    11a8 <print_flick+0x98>
mov    -0xc(%rbp),%eax
sub    $0x7b,%eax
je     126b <print_flick+0x15b>
jmp    11b9 <print_flick+0xa9>
mov    -0xc(%rbp),%eax
sub    $0x1c8,%eax
je     1251 <print_flick+0x141>
jmp    11cc <print_flick+0xbc>
mov    -0xc(%rbp),%eax
sub    $0x3e8,%eax
je     1285 <print_flick+0x175>
jmp    129a <print_flick+0x18a>
lea    0xe1a(%rip),%rdi
lea    0xe21(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    129a <print_flick+0x18a>
mov    -0x8(%rbp),%esi
lea    0xe0e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    129a <print_flick+0x18a>
mov    -0x8(%rbp),%esi
lea    0xe0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    129a <print_flick+0x18a>
mov    -0x8(%rbp),%esi
lea    0xe06(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    129a <print_flick+0x18a>
mov    -0x8(%rbp),%esi
lea    0xe02(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    129a <print_flick+0x18a>
lea    0xe01(%rip),%rdi
lea    0xe0c(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    129a <print_flick+0x18a>
lea    0xdfb(%rip),%rdi
lea    0xd95(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    129a <print_flick+0x18a>
lea    0xdf0(%rip),%rdi
lea    0xdf8(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_flick>:
push   %rax
mov    %edi,%esi
cmp    $0x7a,%edi
jg     113c <print_flick+0x2c>
cmp    $0x8,%esi
ja     11b8 <print_flick+0xa8>
mov    %esi,%eax
lea    0xed6(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xefb(%rip),%rdi
jmp    117a <print_flick+0x6a>
cmp    $0x7b,%esi
je     1193 <print_flick+0x83>
cmp    $0x1c8,%esi
je     11a3 <print_flick+0x93>
cmp    $0x3e8,%esi
jne    11b8 <print_flick+0xa8>
lea    0xf48(%rip),%rdi
lea    0xf50(%rip),%rsi
jmp    11b1 <print_flick+0xa1>
lea    0xedf(%rip),%rdi
jmp    117a <print_flick+0x6a>
lea    0xee8(%rip),%rdi
jmp    117a <print_flick+0x6a>
lea    0xef1(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
pop    %rcx
ret
lea    0xe9a(%rip),%rdi
lea    0xea1(%rip),%rsi
jmp    11b1 <print_flick+0xa1>
lea    0xef7(%rip),%rdi
lea    0xe91(%rip),%rsi
jmp    11b1 <print_flick+0xa1>
lea    0xed3(%rip),%rdi
lea    0xede(%rip),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
pop    %rcx
ret

LLVM IR (-O0):
@.str = [14 x i8] c"\1B[40;1m%s\1B[0m\00"
@.str.1 = [3 x i8] c" \00"
@.str.2 = [18 x i8] c"\1B[44;30;1m%2d\1B[0m\00"
@.str.3 = [18 x i8] c"\1B[42;30;1m%2d\1B[0m\00"
@.str.4 = [18 x i8] c"\1B[43;30;1m%2d\1B[0m\00"
@.str.5 = [18 x i8] c"\1B[41;30;1m%2d\1B[0m\00"
@.str.6 = [18 x i8] c"\1B[31;44;1m%2s\1B[0m\00"
@.str.7 = [2 x i8] c"F\00"
@.str.8 = [15 x i8] c"\1B[40;1m%2s\1B[0m\00"
@.str.9 = [15 x i8] c"\1B[41;1m%2s\1B[0m\00"
@.str.10 = [2 x i8] c"*\00"
define i32 @print_flick(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %25 [
i32 0, label %5
i32 1, label %7
i32 8, label %7
i32 2, label %10
i32 7, label %10
i32 3, label %13
i32 6, label %13
i32 4, label %16
i32 5, label %16
i32 456, label %19
i32 123, label %21
i32 1000, label %23
]
5: ; preds = %1
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %25
7: ; preds = %1, %1
%8 = load i32, i32* %3
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 %8)
br label %25
10: ; preds = %1, %1
%11 = load i32, i32* %3
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %11)
br label %25
13: ; preds = %1, %1
%14 = load i32, i32* %3
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i32 %14)
br label %25
16: ; preds = %1, %1
%17 = load i32, i32* %3
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i32 %17)
br label %25
19: ; preds = %1
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %25
21: ; preds = %1
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %25
23: ; preds = %1
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %25
25: ; preds = %23, %1, %21, %19, %16, %13, %10, %7, %5
%26 = load i32, i32* %2
ret i32 %26
}

LLVM IR (-O2):
@.str = [14 x i8] c"\1B[40;1m%s\1B[0m\00"
@.str.1 = [3 x i8] c" \00"
@.str.2 = [18 x i8] c"\1B[44;30;1m%2d\1B[0m\00"
@.str.3 = [18 x i8] c"\1B[42;30;1m%2d\1B[0m\00"
@.str.4 = [18 x i8] c"\1B[43;30;1m%2d\1B[0m\00"
@.str.5 = [18 x i8] c"\1B[41;30;1m%2d\1B[0m\00"
@.str.6 = [18 x i8] c"\1B[31;44;1m%2s\1B[0m\00"
@.str.7 = [2 x i8] c"F\00"
@.str.8 = [15 x i8] c"\1B[40;1m%2s\1B[0m\00"
@.str.9 = [15 x i8] c"\1B[41;1m%2s\1B[0m\00"
@.str.10 = [2 x i8] c"*\00"
define i32 @print_flick(i32 %0) {
switch i32 %0, label %18 [
i32 0, label %2
i32 1, label %4
i32 8, label %4
i32 2, label %6
i32 7, label %6
i32 3, label %8
i32 6, label %8
i32 4, label %10
i32 5, label %10
i32 456, label %12
i32 123, label %14
i32 1000, label %16
]
2: ; preds = %1
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %18
4: ; preds = %1, %1
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 %0)
br label %18
6: ; preds = %1, %1
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %0)
br label %18
8: ; preds = %1, %1
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i32 %0)
br label %18
10: ; preds = %1, %1
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i32 %0)
br label %18
12: ; preds = %1
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %18
14: ; preds = %1
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %18
16: ; preds = %1
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %18
18: ; preds = %16, %1, %14, %12, %10, %8, %6, %4, %2
ret i32 undef
}