int Oper(char *s, char **ss) {
  int op = 0;
  int dd = 0;
  switch (s[0]) {
  case '=':
    if (s[1] == '=') {
      op = 0x90;
      dd = 2;
    } else {
      op = 0x60;
      dd = 1;
    }
    break;
  case '&':
    if (s[1] == '&') {
      op = 0x80;
      dd = 2;
    } else {
      op = 0xC0;
      dd = 1;
    }
    break;
  case '|':
    if (s[1] == '|') {
      op = 0x81;
      dd = 2;
    } else {
      op = 0xC1;
      dd = 1;
    }
    break;
  case '!':
    if (s[1] == '=') {
      op = 0x91;
      dd = 2;
    }
    break;
  case '>':
    if (s[1] == '=') {
      op = 0x94;
      dd = 2;
    } else {
      if (s[1] == '>') {
        op = 0xD0;
        dd = 2;
      } else {
        op = 0x92;
        dd = 1;
      }
    }
    break;
  case '<':
    if (s[1] == '=') {
      op = 0x95;
      dd = 2;
    } else {
      if (s[1] == '<') {
        op = 0xD1;
        dd = 2;
      } else {
        if (s[1] == '>') {
          op = 0x91;
          dd = 2;
        } else {
          op = 0x93;
          dd = 1;
        }
      }
    }
    break;
  case '+':
    op = 0xA0;
    dd = 1;
    break;
  case '-':
    op = 0xA1;
    dd = 1;
    break;
  case '*':
    op = 0xB0;
    dd = 1;
    break;
  case '/':
    op = 0xB1;
    dd = 1;
    break;
  case '%':
    op = 0xB2;
    dd = 1;
    break;
  case '^':
    op = 0xC2;
    dd = 1;
    break;
  case '?':
    op = 0xFF;
    dd = 1;
    break;
  case ':':
    op = 0xF0;
    dd = 1;
    break;
  }
  *ss = &s[dd];
  return op;
}


x86 assembly (clang, -O0):
<Oper>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
add    $0xffffffdf,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0x5b,%eax
ja     138c <Oper+0x28c>
mov    -0x20(%rbp),%rax
lea    0xec2(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x8(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x3d,%eax
jne    116b <Oper+0x6b>
movl   $0x90,-0x14(%rbp)
movl   $0x2,-0x18(%rbp)
jmp    1179 <Oper+0x79>
movl   $0x60,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
jmp    138c <Oper+0x28c>
mov    -0x8(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x26,%eax
jne    11a2 <Oper+0xa2>
movl   $0x80,-0x14(%rbp)
movl   $0x2,-0x18(%rbp)
jmp    11b0 <Oper+0xb0>
movl   $0xc0,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
jmp    138c <Oper+0x28c>
mov    -0x8(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x7c,%eax
jne    11d9 <Oper+0xd9>
movl   $0x81,-0x14(%rbp)
movl   $0x2,-0x18(%rbp)
jmp    11e7 <Oper+0xe7>
movl   $0xc1,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
jmp    138c <Oper+0x28c>
mov    -0x8(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x3d,%eax
jne    120b <Oper+0x10b>
movl   $0x91,-0x14(%rbp)
movl   $0x2,-0x18(%rbp)
jmp    138c <Oper+0x28c>
mov    -0x8(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x3d,%eax
jne    1234 <Oper+0x134>
movl   $0x94,-0x14(%rbp)
movl   $0x2,-0x18(%rbp)
jmp    126b <Oper+0x16b>
mov    -0x8(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x3e,%eax
jne    1258 <Oper+0x158>
movl   $0xd0,-0x14(%rbp)
movl   $0x2,-0x18(%rbp)
jmp    1266 <Oper+0x166>
movl   $0x92,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
jmp    126b <Oper+0x16b>
jmp    138c <Oper+0x28c>
mov    -0x8(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x3d,%eax
jne    1294 <Oper+0x194>
movl   $0x95,-0x14(%rbp)
movl   $0x2,-0x18(%rbp)
jmp    12f4 <Oper+0x1f4>
mov    -0x8(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x3c,%eax
jne    12b8 <Oper+0x1b8>
movl   $0xd1,-0x14(%rbp)
movl   $0x2,-0x18(%rbp)
jmp    12ef <Oper+0x1ef>
mov    -0x8(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x3e,%eax
jne    12dc <Oper+0x1dc>
movl   $0x91,-0x14(%rbp)
movl   $0x2,-0x18(%rbp)
jmp    12ea <Oper+0x1ea>
movl   $0x93,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
jmp    12ef <Oper+0x1ef>
jmp    12f4 <Oper+0x1f4>
jmp    138c <Oper+0x28c>
movl   $0xa0,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
jmp    138c <Oper+0x28c>
movl   $0xa1,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
jmp    138c <Oper+0x28c>
movl   $0xb0,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
jmp    138c <Oper+0x28c>
movl   $0xb1,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
jmp    138c <Oper+0x28c>
movl   $0xb2,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
jmp    138c <Oper+0x28c>
movl   $0xc2,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
jmp    138c <Oper+0x28c>
movl   $0xff,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
jmp    138c <Oper+0x28c>
movl   $0xf0,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
mov    -0x8(%rbp),%rcx
movslq -0x18(%rbp),%rax
add    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x14(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<Oper>:
movsbl (%rdi),%edx
xor    %eax,%eax
xor    %r8d,%r8d
add    $0xffffffdf,%edx
cmp    $0x5b,%edx
ja     1277 <Oper+0x177>
lea    0xee5(%rip),%rcx
movslq (%rcx,%rdx,4),%rdx
add    %rcx,%rdx
jmp    *%rdx
xor    %ecx,%ecx
xor    %r8d,%r8d
cmpb   $0x3d,0x1(%rdi)
sete   %r8b
mov    $0x91,%eax
cmovne %ecx,%eax
add    %r8,%r8
jmp    1277 <Oper+0x177>
mov    $0x1,%r8d
mov    $0xa0,%eax
jmp    1277 <Oper+0x177>
mov    0x1(%rdi),%al
mov    $0x2,%r8d
cmp    $0x3d,%al
je     1265 <Oper+0x165>
cmp    $0x3e,%al
jne    126c <Oper+0x16c>
mov    $0xd0,%eax
jmp    1277 <Oper+0x177>
xor    %r8d,%r8d
xor    %eax,%eax
cmpb   $0x7c,0x1(%rdi)
sete   %r8b
setne  %al
shl    $0x6,%eax
or     $0x81,%eax
add    $0x1,%r8
jmp    1277 <Oper+0x177>
mov    $0x1,%r8d
mov    $0xb2,%eax
jmp    1277 <Oper+0x177>
xor    %r8d,%r8d
xor    %eax,%eax
cmpb   $0x26,0x1(%rdi)
sete   %r8b
setne  %al
or     $0x2,%eax
shl    $0x6,%eax
add    $0x1,%r8
jmp    1277 <Oper+0x177>
mov    $0x1,%r8d
mov    $0xb0,%eax
jmp    1277 <Oper+0x177>
mov    $0x1,%r8d
mov    $0xa1,%eax
jmp    1277 <Oper+0x177>
mov    $0x1,%r8d
mov    $0xb1,%eax
jmp    1277 <Oper+0x177>
mov    $0x1,%r8d
mov    $0xf0,%eax
jmp    1277 <Oper+0x177>
mov    0x1(%rdi),%al
add    $0xc4,%al
cmp    $0x3,%al
jae    1258 <Oper+0x158>
movsbq %al,%rax
lea    0xf5b(%rip),%rcx
mov    (%rcx,%rax,4),%eax
mov    $0x2,%r8d
jmp    1277 <Oper+0x177>
xor    %r8d,%r8d
cmpb   $0x3d,0x1(%rdi)
sete   %r8b
mov    $0x90,%ecx
mov    $0x60,%eax
cmove  %ecx,%eax
add    $0x1,%r8
jmp    1277 <Oper+0x177>
mov    $0x1,%r8d
mov    $0xff,%eax
jmp    1277 <Oper+0x177>
mov    $0x1,%r8d
mov    $0xc2,%eax
jmp    1277 <Oper+0x177>
mov    $0x1,%r8d
mov    $0x93,%eax
jmp    1277 <Oper+0x177>
mov    $0x94,%eax
jmp    1277 <Oper+0x177>
mov    $0x1,%r8d
mov    $0x92,%eax
add    %r8,%rdi
mov    %rdi,(%rsi)
ret

LLVM IR (-O0):
define i32 @Oper(i8* %0, i8** %1) {
%3 = alloca i8*
%4 = alloca i8**
%5 = alloca i32
%6 = alloca i32
store i8* %0, i8** %3
store i8** %1, i8*** %4
store i32 0, i32* %5
store i32 0, i32* %6
%7 = load i8*, i8** %3
%8 = getelementptr inbounds i8, i8* %7, i64 0
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
switch i32 %10, label %96 [
i32 61, label %11
i32 38, label %20
i32 124, label %29
i32 33, label %38
i32 62, label %46
i32 60, label %63
i32 43, label %88
i32 45, label %89
i32 42, label %90
i32 47, label %91
i32 37, label %92
i32 94, label %93
i32 63, label %94
i32 58, label %95
]
11: ; preds = %2
%12 = load i8*, i8** %3
%13 = getelementptr inbounds i8, i8* %12, i64 1
%14 = load i8, i8* %13
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 61
br i1 %16, label %17, label %18
17: ; preds = %11
store i32 144, i32* %5
store i32 2, i32* %6
br label %19
18: ; preds = %11
store i32 96, i32* %5
store i32 1, i32* %6
br label %19
19: ; preds = %18, %17
br label %96
20: ; preds = %2
%21 = load i8*, i8** %3
%22 = getelementptr inbounds i8, i8* %21, i64 1
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 38
br i1 %25, label %26, label %27
26: ; preds = %20
store i32 128, i32* %5
store i32 2, i32* %6
br label %28
27: ; preds = %20
store i32 192, i32* %5
store i32 1, i32* %6
br label %28
28: ; preds = %27, %26
br label %96
29: ; preds = %2
%30 = load i8*, i8** %3
%31 = getelementptr inbounds i8, i8* %30, i64 1
%32 = load i8, i8* %31
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 124
br i1 %34, label %35, label %36
35: ; preds = %29
store i32 129, i32* %5
store i32 2, i32* %6
br label %37
36: ; preds = %29
store i32 193, i32* %5
store i32 1, i32* %6
br label %37
37: ; preds = %36, %35
br label %96
38: ; preds = %2
%39 = load i8*, i8** %3
%40 = getelementptr inbounds i8, i8* %39, i64 1
%41 = load i8, i8* %40
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %42, 61
br i1 %43, label %44, label %45
44: ; preds = %38
store i32 145, i32* %5
store i32 2, i32* %6
br label %45
45: ; preds = %44, %38
br label %96
46: ; preds = %2
%47 = load i8*, i8** %3
%48 = getelementptr inbounds i8, i8* %47, i64 1
%49 = load i8, i8* %48
%50 = sext i8 %49 to i32
%51 = icmp eq i32 %50, 61
br i1 %51, label %52, label %53
52: ; preds = %46
store i32 148, i32* %5
store i32 2, i32* %6
br label %62
53: ; preds = %46
%54 = load i8*, i8** %3
%55 = getelementptr inbounds i8, i8* %54, i64 1
%56 = load i8, i8* %55
%57 = sext i8 %56 to i32
%58 = icmp eq i32 %57, 62
br i1 %58, label %59, label %60
59: ; preds = %53
store i32 208, i32* %5
store i32 2, i32* %6
br label %61
60: ; preds = %53
store i32 146, i32* %5
store i32 1, i32* %6
br label %61
61: ; preds = %60, %59
br label %62
62: ; preds = %61, %52
br label %96
63: ; preds = %2
%64 = load i8*, i8** %3
%65 = getelementptr inbounds i8, i8* %64, i64 1
%66 = load i8, i8* %65
%67 = sext i8 %66 to i32
%68 = icmp eq i32 %67, 61
br i1 %68, label %69, label %70
69: ; preds = %63
store i32 149, i32* %5
store i32 2, i32* %6
br label %87
70: ; preds = %63
%71 = load i8*, i8** %3
%72 = getelementptr inbounds i8, i8* %71, i64 1
%73 = load i8, i8* %72
%74 = sext i8 %73 to i32
%75 = icmp eq i32 %74, 60
br i1 %75, label %76, label %77
76: ; preds = %70
store i32 209, i32* %5
store i32 2, i32* %6
br label %86
77: ; preds = %70
%78 = load i8*, i8** %3
%79 = getelementptr inbounds i8, i8* %78, i64 1
%80 = load i8, i8* %79
%81 = sext i8 %80 to i32
%82 = icmp eq i32 %81, 62
br i1 %82, label %83, label %84
83: ; preds = %77
store i32 145, i32* %5
store i32 2, i32* %6
br label %85
84: ; preds = %77
store i32 147, i32* %5
store i32 1, i32* %6
br label %85
85: ; preds = %84, %83
br label %86
86: ; preds = %85, %76
br label %87
87: ; preds = %86, %69
br label %96
88: ; preds = %2
store i32 160, i32* %5
store i32 1, i32* %6
br label %96
89: ; preds = %2
store i32 161, i32* %5
store i32 1, i32* %6
br label %96
90: ; preds = %2
store i32 176, i32* %5
store i32 1, i32* %6
br label %96
91: ; preds = %2
store i32 177, i32* %5
store i32 1, i32* %6
br label %96
92: ; preds = %2
store i32 178, i32* %5
store i32 1, i32* %6
br label %96
93: ; preds = %2
store i32 194, i32* %5
store i32 1, i32* %6
br label %96
94: ; preds = %2
store i32 255, i32* %5
store i32 1, i32* %6
br label %96
95: ; preds = %2
store i32 240, i32* %5
store i32 1, i32* %6
br label %96
96: ; preds = %2, %95, %94, %93, %92, %91, %90, %89, %88, %87, %62, %45, %37, %28, %19
%97 = load i8*, i8** %3
%98 = load i32, i32* %6
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i8, i8* %97, i64 %99
%101 = load i8**, i8*** %4
store i8* %100, i8** %101
%102 = load i32, i32* %5
ret i32 %102
}

LLVM IR (-O2):
@switch.table.Oper = [3 x i32] [i32 209, i32 149, i32 145]
define i32 @Oper(i8* %0, i8** nocapture writeonly %1) {
%3 = load i8, i8* %0
%4 = sext i8 %3 to i32
switch i32 %4, label %51 [
i32 61, label %5
i32 38, label %11
i32 124, label %17
i32 33, label %23
i32 62, label %29
i32 60, label %34
i32 43, label %39
i32 45, label %40
i32 42, label %41
i32 47, label %42
i32 37, label %43
i32 94, label %44
i32 63, label %45
i32 58, label %46
]
5: ; preds = %2
%6 = getelementptr inbounds i8, i8* %0, i64 1
%7 = load i8, i8* %6
%8 = icmp eq i8 %7, 61
%9 = select i1 %8, i32 144, i32 96
%10 = select i1 %8, i64 2, i64 1
br label %51
11: ; preds = %2
%12 = getelementptr inbounds i8, i8* %0, i64 1
%13 = load i8, i8* %12
%14 = icmp eq i8 %13, 38
%15 = select i1 %14, i32 128, i32 192
%16 = select i1 %14, i64 2, i64 1
br label %51
17: ; preds = %2
%18 = getelementptr inbounds i8, i8* %0, i64 1
%19 = load i8, i8* %18
%20 = icmp eq i8 %19, 124
%21 = select i1 %20, i32 129, i32 193
%22 = select i1 %20, i64 2, i64 1
br label %51
23: ; preds = %2
%24 = getelementptr inbounds i8, i8* %0, i64 1
%25 = load i8, i8* %24
%26 = icmp eq i8 %25, 61
%27 = select i1 %26, i32 145, i32 0
%28 = select i1 %26, i64 2, i64 0
br label %51
29: ; preds = %2
%30 = getelementptr inbounds i8, i8* %0, i64 1
%31 = load i8, i8* %30
switch i8 %31, label %33 [
i8 61, label %51
i8 62, label %32
]
32: ; preds = %29
br label %51
33: ; preds = %29
br label %51
34: ; preds = %2
%35 = getelementptr inbounds i8, i8* %0, i64 1
%36 = load i8, i8* %35
%37 = add i8 %36, -60
%38 = icmp ult i8 %37, 3
br i1 %38, label %47, label %51
39: ; preds = %2
br label %51
40: ; preds = %2
br label %51
41: ; preds = %2
br label %51
42: ; preds = %2
br label %51
43: ; preds = %2
br label %51
44: ; preds = %2
br label %51
45: ; preds = %2
br label %51
46: ; preds = %2
br label %51
47: ; preds = %34
%48 = sext i8 %37 to i64
%49 = getelementptr inbounds [3 x i32], [3 x i32]* @switch.table.Oper, i64 0, i64 %48
%50 = load i32, i32* %49
br label %51
51: ; preds = %34, %47, %23, %29, %17, %11, %5, %33, %32, %2, %46, %45, %44, %43, %42, %41, %40, %39
%52 = phi i32 [ 0, %2 ], [ 240, %46 ], [ 255, %45 ], [ 194, %44 ], [ 178, %43 ], [ 177, %42 ], [ 176, %41 ], [ 161, %40 ], [ 160, %39 ], [ 208, %32 ], [ 146, %33 ], [ %9, %5 ], [ %15, %11 ], [ %21, %17 ], [ %27, %23 ], [ 148, %29 ], [ %50, %47 ], [ 147, %34 ]
%53 = phi i64 [ 0, %2 ], [ 1, %46 ], [ 1, %45 ], [ 1, %44 ], [ 1, %43 ], [ 1, %42 ], [ 1, %41 ], [ 1, %40 ], [ 1, %39 ], [ 2, %32 ], [ 1, %33 ], [ %10, %5 ], [ %16, %11 ], [ %22, %17 ], [ %28, %23 ], [ 2, %29 ], [ 2, %47 ], [ 1, %34 ]
%54 = getelementptr inbounds i8, i8* %0, i64 %53
store i8* %54, i8** %1
ret i32 %52
}