int e_op_binar(int codu) {
  switch (codu) {
  case '~':
  case '!':
  case 300:
  case 301:
    return 5000;
    break;
  case '+':
  case '-':
  case '*':
  case '/':
  case '%':
  case ',':
  case '|':
  case '&':
  case '^':
  case '=':
  case '<':
  case '>':
    return 6000;
    break;
  default:
    return 7000;
    break;
  }
  return 7000;
}


x86 assembly (clang, -O0):
<e_op_binar>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
sub    $0x21,%eax
je     11b1 <e_op_binar+0xb1>
jmp    111b <e_op_binar+0x1b>
mov    -0xc(%rbp),%eax
add    $0xffffffdb,%eax
sub    $0x2,%eax
jb     11bd <e_op_binar+0xbd>
jmp    112f <e_op_binar+0x2f>
mov    -0xc(%rbp),%eax
add    $0xffffffd6,%eax
sub    $0x4,%eax
jb     11bd <e_op_binar+0xbd>
jmp    1143 <e_op_binar+0x43>
mov    -0xc(%rbp),%eax
sub    $0x2f,%eax
je     11bd <e_op_binar+0xbd>
jmp    1154 <e_op_binar+0x54>
mov    -0xc(%rbp),%eax
add    $0xffffffc4,%eax
sub    $0x3,%eax
jb     11bd <e_op_binar+0xbd>
jmp    1168 <e_op_binar+0x68>
mov    -0xc(%rbp),%eax
sub    $0x5e,%eax
je     11bd <e_op_binar+0xbd>
jmp    1179 <e_op_binar+0x79>
mov    -0xc(%rbp),%eax
sub    $0x7c,%eax
je     11bd <e_op_binar+0xbd>
jmp    118a <e_op_binar+0x8a>
mov    -0xc(%rbp),%eax
sub    $0x7e,%eax
je     11b1 <e_op_binar+0xb1>
jmp    119b <e_op_binar+0x9b>
mov    -0xc(%rbp),%eax
add    $0xfffffed4,%eax
sub    $0x1,%eax
ja     11c9 <e_op_binar+0xc9>
jmp    11b1 <e_op_binar+0xb1>
movl   $0x1388,-0x4(%rbp)
jmp    11d0 <e_op_binar+0xd0>
movl   $0x1770,-0x4(%rbp)
jmp    11d0 <e_op_binar+0xd0>
movl   $0x1b58,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<e_op_binar>:
mov    $0x1388,%eax
lea    -0x21(%rdi),%ecx
cmp    $0x5d,%ecx
ja     1123 <e_op_binar+0x23>
lea    0xeec(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
mov    $0x1770,%eax
ret
add    $0xfffffed4,%edi
cmp    $0x2,%edi
jb     1122 <e_op_binar+0x22>
mov    $0x1b58,%eax
ret

LLVM IR (-O0):
define i32 @e_op_binar(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %7 [
i32 126, label %5
i32 33, label %5
i32 300, label %5
i32 301, label %5
i32 43, label %6
i32 45, label %6
i32 42, label %6
i32 47, label %6
i32 37, label %6
i32 44, label %6
i32 124, label %6
i32 38, label %6
i32 94, label %6
i32 61, label %6
i32 60, label %6
i32 62, label %6
]
5: ; preds = %1, %1, %1, %1
store i32 5000, i32* %2
br label %8
6: ; preds = %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1
store i32 6000, i32* %2
br label %8
7: ; preds = %1
store i32 7000, i32* %2
br label %8
8: ; preds = %7, %6, %5
%9 = load i32, i32* %2
ret i32 %9
}

LLVM IR (-O2):
define i32 @e_op_binar(i32 %0) {
switch i32 %0, label %3 [
i32 126, label %4
i32 33, label %4
i32 300, label %4
i32 301, label %4
i32 43, label %2
i32 45, label %2
i32 42, label %2
i32 47, label %2
i32 37, label %2
i32 44, label %2
i32 124, label %2
i32 38, label %2
i32 94, label %2
i32 61, label %2
i32 60, label %2
i32 62, label %2
]
2: ; preds = %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1
br label %4
3: ; preds = %1
br label %4
4: ; preds = %1, %1, %1, %1, %3, %2
%5 = phi i32 [ 7000, %3 ], [ 6000, %2 ], [ 5000, %1 ], [ 5000, %1 ], [ 5000, %1 ], [ 5000, %1 ]
ret i32 %5
}