int is_metachar(char c) {
  int state = 34;
  switch (c) {
  case ';':
    break;
  case '|':
    break;
  case '>':
    break;
  case '<':
    break;
  case '\'':
    break;
  case '\"':
    break;
  case '&':
    break;
  case ')':
    break;
  case '(':
    break;
  default:
    state = 0;
  }
  return state;
}


x86 assembly (clang, -O0):
<is_metachar>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movl   $0x22,-0x8(%rbp)
movsbl -0x1(%rbp),%eax
mov    %eax,-0xc(%rbp)
sub    $0x22,%eax
je     11c7 <is_metachar+0xc7>
jmp    1126 <is_metachar+0x26>
mov    -0xc(%rbp),%eax
sub    $0x26,%eax
je     11cc <is_metachar+0xcc>
jmp    1137 <is_metachar+0x37>
mov    -0xc(%rbp),%eax
sub    $0x27,%eax
je     11c2 <is_metachar+0xc2>
jmp    1148 <is_metachar+0x48>
mov    -0xc(%rbp),%eax
sub    $0x28,%eax
je     11d6 <is_metachar+0xd6>
jmp    1159 <is_metachar+0x59>
mov    -0xc(%rbp),%eax
sub    $0x29,%eax
je     11d1 <is_metachar+0xd1>
jmp    116a <is_metachar+0x6a>
mov    -0xc(%rbp),%eax
sub    $0x3b,%eax
je     11ae <is_metachar+0xae>
jmp    117b <is_metachar+0x7b>
mov    -0xc(%rbp),%eax
sub    $0x3c,%eax
je     11bd <is_metachar+0xbd>
jmp    118c <is_metachar+0x8c>
mov    -0xc(%rbp),%eax
sub    $0x3e,%eax
je     11b8 <is_metachar+0xb8>
jmp    119d <is_metachar+0x9d>
mov    -0xc(%rbp),%eax
sub    $0x7c,%eax
je     11b3 <is_metachar+0xb3>
jmp    11db <is_metachar+0xdb>
jmp    11e2 <is_metachar+0xe2>
jmp    11e2 <is_metachar+0xe2>
jmp    11e2 <is_metachar+0xe2>
jmp    11e2 <is_metachar+0xe2>
jmp    11e2 <is_metachar+0xe2>
jmp    11e2 <is_metachar+0xe2>
jmp    11e2 <is_metachar+0xe2>
jmp    11e2 <is_metachar+0xe2>
jmp    11e2 <is_metachar+0xe2>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_metachar>:
mov    $0x22,%eax
cmp    $0x3e,%edi
ja     111d <is_metachar+0x1d>
mov    %edi,%ecx
movabs $0x580003c400000000,%rdx
bt     %rcx,%rdx
jae    111d <is_metachar+0x1d>
ret
cmp    $0x7c,%edi
je     111c <is_metachar+0x1c>
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @is_metachar(i8 signext %0) {
%2 = alloca i8
%3 = alloca i32
store i8 %0, i8* %2
store i32 34, i32* %3
%4 = load i8, i8* %2
%5 = sext i8 %4 to i32
switch i32 %5, label %15 [
i32 59, label %6
i32 124, label %7
i32 62, label %8
i32 60, label %9
i32 39, label %10
i32 34, label %11
i32 38, label %12
i32 41, label %13
i32 40, label %14
]
6: ; preds = %1
br label %16
7: ; preds = %1
br label %16
8: ; preds = %1
br label %16
9: ; preds = %1
br label %16
10: ; preds = %1
br label %16
11: ; preds = %1
br label %16
12: ; preds = %1
br label %16
13: ; preds = %1
br label %16
14: ; preds = %1
br label %16
15: ; preds = %1
store i32 0, i32* %3
br label %16
16: ; preds = %15, %14, %13, %12, %11, %10, %9, %8, %7, %6
%17 = load i32, i32* %3
ret i32 %17
}

LLVM IR (-O2):
define i32 @is_metachar(i8 signext %0) {
%2 = sext i8 %0 to i32
switch i32 %2, label %3 [
i32 59, label %4
i32 124, label %4
i32 62, label %4
i32 60, label %4
i32 39, label %4
i32 34, label %4
i32 38, label %4
i32 41, label %4
i32 40, label %4
]
3: ; preds = %1
br label %4
4: ; preds = %3, %1, %1, %1, %1, %1, %1, %1, %1, %1
%5 = phi i32 [ 0, %3 ], [ 34, %1 ], [ 34, %1 ], [ 34, %1 ], [ 34, %1 ], [ 34, %1 ], [ 34, %1 ], [ 34, %1 ], [ 34, %1 ], [ 34, %1 ]
ret i32 %5
}