int command_input_and_function(char *command) {
  if (command[0] == 'b' && command[1] == 'u' && command[2] == 't' &&
      command[3] == 't' && command[4] == 'o' && command[5] == 'n' &&
      command[6] == '_' && command[7] == 'c' && command[8] == 'l' &&
      command[9] == 'i' && command[10] == 'c' && command[11] == 'k' &&
      command[12] == 'e' && command[13] == 'd') {
    return 1;
  } else if (command[0] == 'c' && command[1] == 'y' && command[2] == 'c' &&
             command[3] == 'l' && command[4] == 'e' && command[5] == '_' &&
             command[6] == 'c' && command[7] == 'o' && command[8] == 'm' &&
             command[9] == 'p' && command[10] == 'l' && command[11] == 'e' &&
             command[12] == 't' && command[13] == 'e') {
    return 2;
  } else {
    return -1;
  }
}


x86 assembly (clang, -O0):
<command_input_and_function>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x62,%eax
jne    1201 <command_input_and_function+0x101>
mov    -0x10(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x75,%eax
jne    1201 <command_input_and_function+0x101>
mov    -0x10(%rbp),%rax
movsbl 0x2(%rax),%eax
cmp    $0x74,%eax
jne    1201 <command_input_and_function+0x101>
mov    -0x10(%rbp),%rax
movsbl 0x3(%rax),%eax
cmp    $0x74,%eax
jne    1201 <command_input_and_function+0x101>
mov    -0x10(%rbp),%rax
movsbl 0x4(%rax),%eax
cmp    $0x6f,%eax
jne    1201 <command_input_and_function+0x101>
mov    -0x10(%rbp),%rax
movsbl 0x5(%rax),%eax
cmp    $0x6e,%eax
jne    1201 <command_input_and_function+0x101>
mov    -0x10(%rbp),%rax
movsbl 0x6(%rax),%eax
cmp    $0x5f,%eax
jne    1201 <command_input_and_function+0x101>
mov    -0x10(%rbp),%rax
movsbl 0x7(%rax),%eax
cmp    $0x63,%eax
jne    1201 <command_input_and_function+0x101>
mov    -0x10(%rbp),%rax
movsbl 0x8(%rax),%eax
cmp    $0x6c,%eax
jne    1201 <command_input_and_function+0x101>
mov    -0x10(%rbp),%rax
movsbl 0x9(%rax),%eax
cmp    $0x69,%eax
jne    1201 <command_input_and_function+0x101>
mov    -0x10(%rbp),%rax
movsbl 0xa(%rax),%eax
cmp    $0x63,%eax
jne    1201 <command_input_and_function+0x101>
mov    -0x10(%rbp),%rax
movsbl 0xb(%rax),%eax
cmp    $0x6b,%eax
jne    1201 <command_input_and_function+0x101>
mov    -0x10(%rbp),%rax
movsbl 0xc(%rax),%eax
cmp    $0x65,%eax
jne    1201 <command_input_and_function+0x101>
mov    -0x10(%rbp),%rax
movsbl 0xd(%rax),%eax
cmp    $0x64,%eax
jne    1201 <command_input_and_function+0x101>
movl   $0x1,-0x4(%rbp)
jmp    1301 <command_input_and_function+0x201>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x63,%eax
jne    12fa <command_input_and_function+0x1fa>
mov    -0x10(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x79,%eax
jne    12fa <command_input_and_function+0x1fa>
mov    -0x10(%rbp),%rax
movsbl 0x2(%rax),%eax
cmp    $0x63,%eax
jne    12fa <command_input_and_function+0x1fa>
mov    -0x10(%rbp),%rax
movsbl 0x3(%rax),%eax
cmp    $0x6c,%eax
jne    12fa <command_input_and_function+0x1fa>
mov    -0x10(%rbp),%rax
movsbl 0x4(%rax),%eax
cmp    $0x65,%eax
jne    12fa <command_input_and_function+0x1fa>
mov    -0x10(%rbp),%rax
movsbl 0x5(%rax),%eax
cmp    $0x5f,%eax
jne    12fa <command_input_and_function+0x1fa>
mov    -0x10(%rbp),%rax
movsbl 0x6(%rax),%eax
cmp    $0x63,%eax
jne    12fa <command_input_and_function+0x1fa>
mov    -0x10(%rbp),%rax
movsbl 0x7(%rax),%eax
cmp    $0x6f,%eax
jne    12fa <command_input_and_function+0x1fa>
mov    -0x10(%rbp),%rax
movsbl 0x8(%rax),%eax
cmp    $0x6d,%eax
jne    12fa <command_input_and_function+0x1fa>
mov    -0x10(%rbp),%rax
movsbl 0x9(%rax),%eax
cmp    $0x70,%eax
jne    12fa <command_input_and_function+0x1fa>
mov    -0x10(%rbp),%rax
movsbl 0xa(%rax),%eax
cmp    $0x6c,%eax
jne    12fa <command_input_and_function+0x1fa>
mov    -0x10(%rbp),%rax
movsbl 0xb(%rax),%eax
cmp    $0x65,%eax
jne    12fa <command_input_and_function+0x1fa>
mov    -0x10(%rbp),%rax
movsbl 0xc(%rax),%eax
cmp    $0x74,%eax
jne    12fa <command_input_and_function+0x1fa>
mov    -0x10(%rbp),%rax
movsbl 0xd(%rax),%eax
cmp    $0x65,%eax
jne    12fa <command_input_and_function+0x1fa>
movl   $0x2,-0x4(%rbp)
jmp    1301 <command_input_and_function+0x201>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<command_input_and_function>:
mov    (%rdi),%al
cmp    $0x63,%al
je     117b <command_input_and_function+0x7b>
cmp    $0x62,%al
jne    11ce <command_input_and_function+0xce>
cmpb   $0x75,0x1(%rdi)
jne    11ce <command_input_and_function+0xce>
cmpb   $0x74,0x2(%rdi)
jne    11ce <command_input_and_function+0xce>
cmpb   $0x74,0x3(%rdi)
jne    11ce <command_input_and_function+0xce>
cmpb   $0x6f,0x4(%rdi)
jne    11ce <command_input_and_function+0xce>
cmpb   $0x6e,0x5(%rdi)
jne    11ce <command_input_and_function+0xce>
cmpb   $0x5f,0x6(%rdi)
jne    11ce <command_input_and_function+0xce>
cmpb   $0x63,0x7(%rdi)
jne    11ce <command_input_and_function+0xce>
cmpb   $0x6c,0x8(%rdi)
jne    11ce <command_input_and_function+0xce>
cmpb   $0x69,0x9(%rdi)
jne    11ce <command_input_and_function+0xce>
cmpb   $0x63,0xa(%rdi)
jne    11ce <command_input_and_function+0xce>
cmpb   $0x6b,0xb(%rdi)
jne    11ce <command_input_and_function+0xce>
cmpb   $0x65,0xc(%rdi)
jne    11ce <command_input_and_function+0xce>
mov    $0x1,%eax
cmpb   $0x64,0xd(%rdi)
jne    11ce <command_input_and_function+0xce>
jmp    11d3 <command_input_and_function+0xd3>
cmpb   $0x79,0x1(%rdi)
jne    11ce <command_input_and_function+0xce>
cmpb   $0x63,0x2(%rdi)
jne    11ce <command_input_and_function+0xce>
cmpb   $0x6c,0x3(%rdi)
jne    11ce <command_input_and_function+0xce>
cmpb   $0x65,0x4(%rdi)
jne    11ce <command_input_and_function+0xce>
cmpb   $0x5f,0x5(%rdi)
jne    11ce <command_input_and_function+0xce>
cmpb   $0x63,0x6(%rdi)
jne    11ce <command_input_and_function+0xce>
cmpb   $0x6f,0x7(%rdi)
jne    11ce <command_input_and_function+0xce>
cmpb   $0x6d,0x8(%rdi)
jne    11ce <command_input_and_function+0xce>
cmpb   $0x70,0x9(%rdi)
jne    11ce <command_input_and_function+0xce>
cmpb   $0x6c,0xa(%rdi)
jne    11ce <command_input_and_function+0xce>
cmpb   $0x65,0xb(%rdi)
jne    11ce <command_input_and_function+0xce>
cmpb   $0x74,0xc(%rdi)
jne    11ce <command_input_and_function+0xce>
mov    $0x2,%eax
cmpb   $0x65,0xd(%rdi)
je     11d3 <command_input_and_function+0xd3>
mov    $0xffffffff,%eax
ret

LLVM IR (-O0):
define i32 @command_input_and_function(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = getelementptr inbounds i8, i8* %4, i64 0
%6 = load i8, i8* %5
%7 = sext i8 %6 to i32
%8 = icmp eq i32 %7, 98
br i1 %8, label %9, label %88
9: ; preds = %1
%10 = load i8*, i8** %3
%11 = getelementptr inbounds i8, i8* %10, i64 1
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 117
br i1 %14, label %15, label %88
15: ; preds = %9
%16 = load i8*, i8** %3
%17 = getelementptr inbounds i8, i8* %16, i64 2
%18 = load i8, i8* %17
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 116
br i1 %20, label %21, label %88
21: ; preds = %15
%22 = load i8*, i8** %3
%23 = getelementptr inbounds i8, i8* %22, i64 3
%24 = load i8, i8* %23
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 116
br i1 %26, label %27, label %88
27: ; preds = %21
%28 = load i8*, i8** %3
%29 = getelementptr inbounds i8, i8* %28, i64 4
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 111
br i1 %32, label %33, label %88
33: ; preds = %27
%34 = load i8*, i8** %3
%35 = getelementptr inbounds i8, i8* %34, i64 5
%36 = load i8, i8* %35
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 110
br i1 %38, label %39, label %88
39: ; preds = %33
%40 = load i8*, i8** %3
%41 = getelementptr inbounds i8, i8* %40, i64 6
%42 = load i8, i8* %41
%43 = sext i8 %42 to i32
%44 = icmp eq i32 %43, 95
br i1 %44, label %45, label %88
45: ; preds = %39
%46 = load i8*, i8** %3
%47 = getelementptr inbounds i8, i8* %46, i64 7
%48 = load i8, i8* %47
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 99
br i1 %50, label %51, label %88
51: ; preds = %45
%52 = load i8*, i8** %3
%53 = getelementptr inbounds i8, i8* %52, i64 8
%54 = load i8, i8* %53
%55 = sext i8 %54 to i32
%56 = icmp eq i32 %55, 108
br i1 %56, label %57, label %88
57: ; preds = %51
%58 = load i8*, i8** %3
%59 = getelementptr inbounds i8, i8* %58, i64 9
%60 = load i8, i8* %59
%61 = sext i8 %60 to i32
%62 = icmp eq i32 %61, 105
br i1 %62, label %63, label %88
63: ; preds = %57
%64 = load i8*, i8** %3
%65 = getelementptr inbounds i8, i8* %64, i64 10
%66 = load i8, i8* %65
%67 = sext i8 %66 to i32
%68 = icmp eq i32 %67, 99
br i1 %68, label %69, label %88
69: ; preds = %63
%70 = load i8*, i8** %3
%71 = getelementptr inbounds i8, i8* %70, i64 11
%72 = load i8, i8* %71
%73 = sext i8 %72 to i32
%74 = icmp eq i32 %73, 107
br i1 %74, label %75, label %88
75: ; preds = %69
%76 = load i8*, i8** %3
%77 = getelementptr inbounds i8, i8* %76, i64 12
%78 = load i8, i8* %77
%79 = sext i8 %78 to i32
%80 = icmp eq i32 %79, 101
br i1 %80, label %81, label %88
81: ; preds = %75
%82 = load i8*, i8** %3
%83 = getelementptr inbounds i8, i8* %82, i64 13
%84 = load i8, i8* %83
%85 = sext i8 %84 to i32
%86 = icmp eq i32 %85, 100
br i1 %86, label %87, label %88
87: ; preds = %81
store i32 1, i32* %2
br label %174
88: ; preds = %81, %75, %69, %63, %57, %51, %45, %39, %33, %27, %21, %15, %9, %1
%89 = load i8*, i8** %3
%90 = getelementptr inbounds i8, i8* %89, i64 0
%91 = load i8, i8* %90
%92 = sext i8 %91 to i32
%93 = icmp eq i32 %92, 99
br i1 %93, label %94, label %173
94: ; preds = %88
%95 = load i8*, i8** %3
%96 = getelementptr inbounds i8, i8* %95, i64 1
%97 = load i8, i8* %96
%98 = sext i8 %97 to i32
%99 = icmp eq i32 %98, 121
br i1 %99, label %100, label %173
100: ; preds = %94
%101 = load i8*, i8** %3
%102 = getelementptr inbounds i8, i8* %101, i64 2
%103 = load i8, i8* %102
%104 = sext i8 %103 to i32
%105 = icmp eq i32 %104, 99
br i1 %105, label %106, label %173
106: ; preds = %100
%107 = load i8*, i8** %3
%108 = getelementptr inbounds i8, i8* %107, i64 3
%109 = load i8, i8* %108
%110 = sext i8 %109 to i32
%111 = icmp eq i32 %110, 108
br i1 %111, label %112, label %173
112: ; preds = %106
%113 = load i8*, i8** %3
%114 = getelementptr inbounds i8, i8* %113, i64 4
%115 = load i8, i8* %114
%116 = sext i8 %115 to i32
%117 = icmp eq i32 %116, 101
br i1 %117, label %118, label %173
118: ; preds = %112
%119 = load i8*, i8** %3
%120 = getelementptr inbounds i8, i8* %119, i64 5
%121 = load i8, i8* %120
%122 = sext i8 %121 to i32
%123 = icmp eq i32 %122, 95
br i1 %123, label %124, label %173
124: ; preds = %118
%125 = load i8*, i8** %3
%126 = getelementptr inbounds i8, i8* %125, i64 6
%127 = load i8, i8* %126
%128 = sext i8 %127 to i32
%129 = icmp eq i32 %128, 99
br i1 %129, label %130, label %173
130: ; preds = %124
%131 = load i8*, i8** %3
%132 = getelementptr inbounds i8, i8* %131, i64 7
%133 = load i8, i8* %132
%134 = sext i8 %133 to i32
%135 = icmp eq i32 %134, 111
br i1 %135, label %136, label %173
136: ; preds = %130
%137 = load i8*, i8** %3
%138 = getelementptr inbounds i8, i8* %137, i64 8
%139 = load i8, i8* %138
%140 = sext i8 %139 to i32
%141 = icmp eq i32 %140, 109
br i1 %141, label %142, label %173
142: ; preds = %136
%143 = load i8*, i8** %3
%144 = getelementptr inbounds i8, i8* %143, i64 9
%145 = load i8, i8* %144
%146 = sext i8 %145 to i32
%147 = icmp eq i32 %146, 112
br i1 %147, label %148, label %173
148: ; preds = %142
%149 = load i8*, i8** %3
%150 = getelementptr inbounds i8, i8* %149, i64 10
%151 = load i8, i8* %150
%152 = sext i8 %151 to i32
%153 = icmp eq i32 %152, 108
br i1 %153, label %154, label %173
154: ; preds = %148
%155 = load i8*, i8** %3
%156 = getelementptr inbounds i8, i8* %155, i64 11
%157 = load i8, i8* %156
%158 = sext i8 %157 to i32
%159 = icmp eq i32 %158, 101
br i1 %159, label %160, label %173
160: ; preds = %154
%161 = load i8*, i8** %3
%162 = getelementptr inbounds i8, i8* %161, i64 12
%163 = load i8, i8* %162
%164 = sext i8 %163 to i32
%165 = icmp eq i32 %164, 116
br i1 %165, label %166, label %173
166: ; preds = %160
%167 = load i8*, i8** %3
%168 = getelementptr inbounds i8, i8* %167, i64 13
%169 = load i8, i8* %168
%170 = sext i8 %169 to i32
%171 = icmp eq i32 %170, 101
br i1 %171, label %172, label %173
172: ; preds = %166
store i32 2, i32* %2
br label %174
173: ; preds = %166, %160, %154, %148, %142, %136, %130, %124, %118, %112, %106, %100, %94, %88
store i32 -1, i32* %2
br label %174
174: ; preds = %173, %172, %87
%175 = load i32, i32* %2
ret i32 %175
}

LLVM IR (-O2):
define i32 @command_input_and_function(i8* %0) {
%2 = load i8, i8* %0
switch i8 %2, label %107 [
i8 98, label %3
i8 99, label %55
]
3: ; preds = %1
%4 = getelementptr inbounds i8, i8* %0, i64 1
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 117
br i1 %6, label %7, label %107
7: ; preds = %3
%8 = getelementptr inbounds i8, i8* %0, i64 2
%9 = load i8, i8* %8
%10 = icmp eq i8 %9, 116
br i1 %10, label %11, label %107
11: ; preds = %7
%12 = getelementptr inbounds i8, i8* %0, i64 3
%13 = load i8, i8* %12
%14 = icmp eq i8 %13, 116
br i1 %14, label %15, label %107
15: ; preds = %11
%16 = getelementptr inbounds i8, i8* %0, i64 4
%17 = load i8, i8* %16
%18 = icmp eq i8 %17, 111
br i1 %18, label %19, label %107
19: ; preds = %15
%20 = getelementptr inbounds i8, i8* %0, i64 5
%21 = load i8, i8* %20
%22 = icmp eq i8 %21, 110
br i1 %22, label %23, label %107
23: ; preds = %19
%24 = getelementptr inbounds i8, i8* %0, i64 6
%25 = load i8, i8* %24
%26 = icmp eq i8 %25, 95
br i1 %26, label %27, label %107
27: ; preds = %23
%28 = getelementptr inbounds i8, i8* %0, i64 7
%29 = load i8, i8* %28
%30 = icmp eq i8 %29, 99
br i1 %30, label %31, label %107
31: ; preds = %27
%32 = getelementptr inbounds i8, i8* %0, i64 8
%33 = load i8, i8* %32
%34 = icmp eq i8 %33, 108
br i1 %34, label %35, label %107
35: ; preds = %31
%36 = getelementptr inbounds i8, i8* %0, i64 9
%37 = load i8, i8* %36
%38 = icmp eq i8 %37, 105
br i1 %38, label %39, label %107
39: ; preds = %35
%40 = getelementptr inbounds i8, i8* %0, i64 10
%41 = load i8, i8* %40
%42 = icmp eq i8 %41, 99
br i1 %42, label %43, label %107
43: ; preds = %39
%44 = getelementptr inbounds i8, i8* %0, i64 11
%45 = load i8, i8* %44
%46 = icmp eq i8 %45, 107
br i1 %46, label %47, label %107
47: ; preds = %43
%48 = getelementptr inbounds i8, i8* %0, i64 12
%49 = load i8, i8* %48
%50 = icmp eq i8 %49, 101
br i1 %50, label %51, label %107
51: ; preds = %47
%52 = getelementptr inbounds i8, i8* %0, i64 13
%53 = load i8, i8* %52
%54 = icmp eq i8 %53, 100
br i1 %54, label %108, label %107
55: ; preds = %1
%56 = getelementptr inbounds i8, i8* %0, i64 1
%57 = load i8, i8* %56
%58 = icmp eq i8 %57, 121
br i1 %58, label %59, label %107
59: ; preds = %55
%60 = getelementptr inbounds i8, i8* %0, i64 2
%61 = load i8, i8* %60
%62 = icmp eq i8 %61, 99
br i1 %62, label %63, label %107
63: ; preds = %59
%64 = getelementptr inbounds i8, i8* %0, i64 3
%65 = load i8, i8* %64
%66 = icmp eq i8 %65, 108
br i1 %66, label %67, label %107
67: ; preds = %63
%68 = getelementptr inbounds i8, i8* %0, i64 4
%69 = load i8, i8* %68
%70 = icmp eq i8 %69, 101
br i1 %70, label %71, label %107
71: ; preds = %67
%72 = getelementptr inbounds i8, i8* %0, i64 5
%73 = load i8, i8* %72
%74 = icmp eq i8 %73, 95
br i1 %74, label %75, label %107
75: ; preds = %71
%76 = getelementptr inbounds i8, i8* %0, i64 6
%77 = load i8, i8* %76
%78 = icmp eq i8 %77, 99
br i1 %78, label %79, label %107
79: ; preds = %75
%80 = getelementptr inbounds i8, i8* %0, i64 7
%81 = load i8, i8* %80
%82 = icmp eq i8 %81, 111
br i1 %82, label %83, label %107
83: ; preds = %79
%84 = getelementptr inbounds i8, i8* %0, i64 8
%85 = load i8, i8* %84
%86 = icmp eq i8 %85, 109
br i1 %86, label %87, label %107
87: ; preds = %83
%88 = getelementptr inbounds i8, i8* %0, i64 9
%89 = load i8, i8* %88
%90 = icmp eq i8 %89, 112
br i1 %90, label %91, label %107
91: ; preds = %87
%92 = getelementptr inbounds i8, i8* %0, i64 10
%93 = load i8, i8* %92
%94 = icmp eq i8 %93, 108
br i1 %94, label %95, label %107
95: ; preds = %91
%96 = getelementptr inbounds i8, i8* %0, i64 11
%97 = load i8, i8* %96
%98 = icmp eq i8 %97, 101
br i1 %98, label %99, label %107
99: ; preds = %95
%100 = getelementptr inbounds i8, i8* %0, i64 12
%101 = load i8, i8* %100
%102 = icmp eq i8 %101, 116
br i1 %102, label %103, label %107
103: ; preds = %99
%104 = getelementptr inbounds i8, i8* %0, i64 13
%105 = load i8, i8* %104
%106 = icmp eq i8 %105, 101
br i1 %106, label %108, label %107
107: ; preds = %1, %3, %7, %11, %15, %19, %23, %27, %31, %35, %39, %43, %47, %51, %103, %99, %95, %91, %87, %83, %79, %75, %71, %67, %63, %59, %55
br label %108
108: ; preds = %103, %51, %107
%109 = phi i32 [ -1, %107 ], [ 1, %51 ], [ 2, %103 ]
ret i32 %109
}