#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 ProcessCommand(char *, char *);
int /*<<< orphan*/ strcmp(char const *, char *);
int ExecColorCommand(char ret[], const char *arg) {
  if (!strcmp(arg, "creative"))
    return (ProcessCommand(ret, "C12\r"));
  if (!strcmp(arg, "cinema"))
    return (ProcessCommand(ret, "C13\r"));
  if (!strcmp(arg, "natural"))
    return (ProcessCommand(ret, "C1B\r"));
  if (!strcmp(arg, "living"))
    return (ProcessCommand(ret, "C11\r"));
  if (!strcmp(arg, "dynamic"))
    return (ProcessCommand(ret, "C19\r"));
  if (!strcmp(arg, "powerful"))
    return (ProcessCommand(ret, "C1A\r"));
  if (!strcmp(arg, "vivid"))
    return (ProcessCommand(ret, "C18\r"));
  if (!strcmp(arg, "user1"))
    return (ProcessCommand(ret, "C14\r"));
  if (!strcmp(arg, "user2"))
    return (ProcessCommand(ret, "C15\r"));
  if (!strcmp(arg, "user3"))
    return (ProcessCommand(ret, "C16\r"));
  if (!strcmp(arg, "user4"))
    return (ProcessCommand(ret, "C17\r"));
  return (2);
}


x86 assembly (clang, -O0):
<ExecColorCommand>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xec5(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1161 <ExecColorCommand+0x41>
mov    -0x10(%rbp),%rdi
lea    0xeb5(%rip),%rsi
call   1030 <ProcessCommand@plt>
mov    %eax,-0x4(%rbp)
jmp    1352 <ExecColorCommand+0x232>
mov    -0x18(%rbp),%rdi
lea    0xea2(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1192 <ExecColorCommand+0x72>
mov    -0x10(%rbp),%rdi
lea    0xe90(%rip),%rsi
call   1030 <ProcessCommand@plt>
mov    %eax,-0x4(%rbp)
jmp    1352 <ExecColorCommand+0x232>
mov    -0x18(%rbp),%rdi
lea    0xe7d(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    11c3 <ExecColorCommand+0xa3>
mov    -0x10(%rbp),%rdi
lea    0xe6c(%rip),%rsi
call   1030 <ProcessCommand@plt>
mov    %eax,-0x4(%rbp)
jmp    1352 <ExecColorCommand+0x232>
mov    -0x18(%rbp),%rdi
lea    0xe59(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    11f4 <ExecColorCommand+0xd4>
mov    -0x10(%rbp),%rdi
lea    0xe47(%rip),%rsi
call   1030 <ProcessCommand@plt>
mov    %eax,-0x4(%rbp)
jmp    1352 <ExecColorCommand+0x232>
mov    -0x18(%rbp),%rdi
lea    0xe34(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1225 <ExecColorCommand+0x105>
mov    -0x10(%rbp),%rdi
lea    0xe23(%rip),%rsi
call   1030 <ProcessCommand@plt>
mov    %eax,-0x4(%rbp)
jmp    1352 <ExecColorCommand+0x232>
mov    -0x18(%rbp),%rdi
lea    0xe10(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1256 <ExecColorCommand+0x136>
mov    -0x10(%rbp),%rdi
lea    0xe00(%rip),%rsi
call   1030 <ProcessCommand@plt>
mov    %eax,-0x4(%rbp)
jmp    1352 <ExecColorCommand+0x232>
mov    -0x18(%rbp),%rdi
lea    0xded(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1287 <ExecColorCommand+0x167>
mov    -0x10(%rbp),%rdi
lea    0xdda(%rip),%rsi
call   1030 <ProcessCommand@plt>
mov    %eax,-0x4(%rbp)
jmp    1352 <ExecColorCommand+0x232>
mov    -0x18(%rbp),%rdi
lea    0xdc7(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    12b8 <ExecColorCommand+0x198>
mov    -0x10(%rbp),%rdi
lea    0xdb4(%rip),%rsi
call   1030 <ProcessCommand@plt>
mov    %eax,-0x4(%rbp)
jmp    1352 <ExecColorCommand+0x232>
mov    -0x18(%rbp),%rdi
lea    0xda1(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    12e9 <ExecColorCommand+0x1c9>
mov    -0x10(%rbp),%rdi
lea    0xd8e(%rip),%rsi
call   1030 <ProcessCommand@plt>
mov    %eax,-0x4(%rbp)
jmp    1352 <ExecColorCommand+0x232>
mov    -0x18(%rbp),%rdi
lea    0xd7b(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    131a <ExecColorCommand+0x1fa>
mov    -0x10(%rbp),%rdi
lea    0xd68(%rip),%rsi
call   1030 <ProcessCommand@plt>
mov    %eax,-0x4(%rbp)
jmp    1352 <ExecColorCommand+0x232>
mov    -0x18(%rbp),%rdi
lea    0xd55(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    134b <ExecColorCommand+0x22b>
mov    -0x10(%rbp),%rdi
lea    0xd42(%rip),%rsi
call   1030 <ProcessCommand@plt>
mov    %eax,-0x4(%rbp)
jmp    1352 <ExecColorCommand+0x232>
movl   $0x2,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ExecColorCommand>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
lea    0xecf(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     1228 <ExecColorCommand+0x108>
lea    0xec6(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     1231 <ExecColorCommand+0x111>
lea    0xebb(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     123a <ExecColorCommand+0x11a>
lea    0xeb1(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     1243 <ExecColorCommand+0x123>
lea    0xea6(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     124c <ExecColorCommand+0x12c>
lea    0xe9c(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     1255 <ExecColorCommand+0x135>
lea    0xe93(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     125e <ExecColorCommand+0x13e>
lea    0xe87(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     1267 <ExecColorCommand+0x147>
lea    0xe7b(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     1270 <ExecColorCommand+0x150>
lea    0xe73(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     1279 <ExecColorCommand+0x159>
lea    0xe6b(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     1282 <ExecColorCommand+0x162>
mov    $0x2,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
lea    0xdda(%rip),%rsi
jmp    1289 <ExecColorCommand+0x169>
lea    0xddd(%rip),%rsi
jmp    1289 <ExecColorCommand+0x169>
lea    0xde1(%rip),%rsi
jmp    1289 <ExecColorCommand+0x169>
lea    0xde4(%rip),%rsi
jmp    1289 <ExecColorCommand+0x169>
lea    0xde8(%rip),%rsi
jmp    1289 <ExecColorCommand+0x169>
lea    0xded(%rip),%rsi
jmp    1289 <ExecColorCommand+0x169>
lea    0xdef(%rip),%rsi
jmp    1289 <ExecColorCommand+0x169>
lea    0xdf1(%rip),%rsi
jmp    1289 <ExecColorCommand+0x169>
lea    0xdf3(%rip),%rsi
jmp    1289 <ExecColorCommand+0x169>
lea    0xdf5(%rip),%rsi
jmp    1289 <ExecColorCommand+0x169>
lea    0xdf7(%rip),%rsi
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <ProcessCommand@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"creative\00"
@.str.1 = [5 x i8] c"C12\0D\00"
@.str.2 = [7 x i8] c"cinema\00"
@.str.3 = [5 x i8] c"C13\0D\00"
@.str.4 = [8 x i8] c"natural\00"
@.str.5 = [5 x i8] c"C1B\0D\00"
@.str.6 = [7 x i8] c"living\00"
@.str.7 = [5 x i8] c"C11\0D\00"
@.str.8 = [8 x i8] c"dynamic\00"
@.str.9 = [5 x i8] c"C19\0D\00"
@.str.10 = [9 x i8] c"powerful\00"
@.str.11 = [5 x i8] c"C1A\0D\00"
@.str.12 = [6 x i8] c"vivid\00"
@.str.13 = [5 x i8] c"C18\0D\00"
@.str.14 = [6 x i8] c"user1\00"
@.str.15 = [5 x i8] c"C14\0D\00"
@.str.16 = [6 x i8] c"user2\00"
@.str.17 = [5 x i8] c"C15\0D\00"
@.str.18 = [6 x i8] c"user3\00"
@.str.19 = [5 x i8] c"C16\0D\00"
@.str.20 = [6 x i8] c"user4\00"
@.str.21 = [5 x i8] c"C17\0D\00"
define i32 @ExecColorCommand(i8* %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
%6 = load i8*, i8** %5
%7 = call i32 @strcmp(i8* %6, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%8 = icmp ne i32 %7, 0
br i1 %8, label %12, label %9
9: ; preds = %2
%10 = load i8*, i8** %4
%11 = call i32 @ProcessCommand(i8* %10, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
store i32 %11, i32* %3
br label %83
12: ; preds = %2
%13 = load i8*, i8** %5
%14 = call i32 @strcmp(i8* %13, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%15 = icmp ne i32 %14, 0
br i1 %15, label %19, label %16
16: ; preds = %12
%17 = load i8*, i8** %4
%18 = call i32 @ProcessCommand(i8* %17, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
store i32 %18, i32* %3
br label %83
19: ; preds = %12
%20 = load i8*, i8** %5
%21 = call i32 @strcmp(i8* %20, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%22 = icmp ne i32 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %19
%24 = load i8*, i8** %4
%25 = call i32 @ProcessCommand(i8* %24, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
store i32 %25, i32* %3
br label %83
26: ; preds = %19
%27 = load i8*, i8** %5
%28 = call i32 @strcmp(i8* %27, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%29 = icmp ne i32 %28, 0
br i1 %29, label %33, label %30
30: ; preds = %26
%31 = load i8*, i8** %4
%32 = call i32 @ProcessCommand(i8* %31, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
store i32 %32, i32* %3
br label %83
33: ; preds = %26
%34 = load i8*, i8** %5
%35 = call i32 @strcmp(i8* %34, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%36 = icmp ne i32 %35, 0
br i1 %36, label %40, label %37
37: ; preds = %33
%38 = load i8*, i8** %4
%39 = call i32 @ProcessCommand(i8* %38, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
store i32 %39, i32* %3
br label %83
40: ; preds = %33
%41 = load i8*, i8** %5
%42 = call i32 @strcmp(i8* %41, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%43 = icmp ne i32 %42, 0
br i1 %43, label %47, label %44
44: ; preds = %40
%45 = load i8*, i8** %4
%46 = call i32 @ProcessCommand(i8* %45, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
store i32 %46, i32* %3
br label %83
47: ; preds = %40
%48 = load i8*, i8** %5
%49 = call i32 @strcmp(i8* %48, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%50 = icmp ne i32 %49, 0
br i1 %50, label %54, label %51
51: ; preds = %47
%52 = load i8*, i8** %4
%53 = call i32 @ProcessCommand(i8* %52, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
store i32 %53, i32* %3
br label %83
54: ; preds = %47
%55 = load i8*, i8** %5
%56 = call i32 @strcmp(i8* %55, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
%57 = icmp ne i32 %56, 0
br i1 %57, label %61, label %58
58: ; preds = %54
%59 = load i8*, i8** %4
%60 = call i32 @ProcessCommand(i8* %59, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
store i32 %60, i32* %3
br label %83
61: ; preds = %54
%62 = load i8*, i8** %5
%63 = call i32 @strcmp(i8* %62, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0))
%64 = icmp ne i32 %63, 0
br i1 %64, label %68, label %65
65: ; preds = %61
%66 = load i8*, i8** %4
%67 = call i32 @ProcessCommand(i8* %66, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0))
store i32 %67, i32* %3
br label %83
68: ; preds = %61
%69 = load i8*, i8** %5
%70 = call i32 @strcmp(i8* %69, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0))
%71 = icmp ne i32 %70, 0
br i1 %71, label %75, label %72
72: ; preds = %68
%73 = load i8*, i8** %4
%74 = call i32 @ProcessCommand(i8* %73, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0))
store i32 %74, i32* %3
br label %83
75: ; preds = %68
%76 = load i8*, i8** %5
%77 = call i32 @strcmp(i8* %76, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.20, i64 0, i64 0))
%78 = icmp ne i32 %77, 0
br i1 %78, label %82, label %79
79: ; preds = %75
%80 = load i8*, i8** %4
%81 = call i32 @ProcessCommand(i8* %80, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0))
store i32 %81, i32* %3
br label %83
82: ; preds = %75
store i32 2, i32* %3
br label %83
83: ; preds = %82, %79, %72, %65, %58, %51, %44, %37, %30, %23, %16, %9
%84 = load i32, i32* %3
ret i32 %84
}

LLVM IR (-O2):
@.str = [9 x i8] c"creative\00"
@.str.1 = [5 x i8] c"C12\0D\00"
@.str.2 = [7 x i8] c"cinema\00"
@.str.3 = [5 x i8] c"C13\0D\00"
@.str.4 = [8 x i8] c"natural\00"
@.str.5 = [5 x i8] c"C1B\0D\00"
@.str.6 = [7 x i8] c"living\00"
@.str.7 = [5 x i8] c"C11\0D\00"
@.str.8 = [8 x i8] c"dynamic\00"
@.str.9 = [5 x i8] c"C19\0D\00"
@.str.10 = [9 x i8] c"powerful\00"
@.str.11 = [5 x i8] c"C1A\0D\00"
@.str.12 = [6 x i8] c"vivid\00"
@.str.13 = [5 x i8] c"C18\0D\00"
@.str.14 = [6 x i8] c"user1\00"
@.str.15 = [5 x i8] c"C14\0D\00"
@.str.16 = [6 x i8] c"user2\00"
@.str.17 = [5 x i8] c"C15\0D\00"
@.str.18 = [6 x i8] c"user3\00"
@.str.19 = [5 x i8] c"C16\0D\00"
@.str.20 = [6 x i8] c"user4\00"
@.str.21 = [5 x i8] c"C17\0D\00"
define i32 @ExecColorCommand(i8* %0, i8* nocapture %1) {
%3 = tail call i32 @strcmp(i8* dereferenceable(1) %1, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i32 %3, 0
br i1 %4, label %35, label %5
5: ; preds = %2
%6 = tail call i32 @strcmp(i8* dereferenceable(1) %1, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%7 = icmp eq i32 %6, 0
br i1 %7, label %35, label %8
8: ; preds = %5
%9 = tail call i32 @strcmp(i8* dereferenceable(1) %1, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%10 = icmp eq i32 %9, 0
br i1 %10, label %35, label %11
11: ; preds = %8
%12 = tail call i32 @strcmp(i8* dereferenceable(1) %1, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%13 = icmp eq i32 %12, 0
br i1 %13, label %35, label %14
14: ; preds = %11
%15 = tail call i32 @strcmp(i8* dereferenceable(1) %1, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%16 = icmp eq i32 %15, 0
br i1 %16, label %35, label %17
17: ; preds = %14
%18 = tail call i32 @strcmp(i8* dereferenceable(1) %1, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%19 = icmp eq i32 %18, 0
br i1 %19, label %35, label %20
20: ; preds = %17
%21 = tail call i32 @strcmp(i8* dereferenceable(1) %1, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%22 = icmp eq i32 %21, 0
br i1 %22, label %35, label %23
23: ; preds = %20
%24 = tail call i32 @strcmp(i8* dereferenceable(1) %1, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
%25 = icmp eq i32 %24, 0
br i1 %25, label %35, label %26
26: ; preds = %23
%27 = tail call i32 @strcmp(i8* dereferenceable(1) %1, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0))
%28 = icmp eq i32 %27, 0
br i1 %28, label %35, label %29
29: ; preds = %26
%30 = tail call i32 @strcmp(i8* dereferenceable(1) %1, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0))
%31 = icmp eq i32 %30, 0
br i1 %31, label %35, label %32
32: ; preds = %29
%33 = tail call i32 @strcmp(i8* dereferenceable(1) %1, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.20, i64 0, i64 0))
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %32, %29, %26, %23, %20, %17, %14, %11, %8, %5, %2
%36 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), %2 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), %5 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), %8 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), %11 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), %14 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), %17 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), %20 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), %23 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), %26 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), %29 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0), %32 ]
%37 = tail call i32 @ProcessCommand(i8* %0, i8* %36)
br label %38
38: ; preds = %35, %32
%39 = phi i32 [ 2, %32 ], [ %37, %35 ]
ret i32 %39
}