#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 */
typedef int uint8_t;

/* Variables and functions */
int opc(int i) {
  static const uint8_t loc[] = {
      16, 29, 31, 17, 14, 23, 36, 36, 36, 12, 10, 21, 11, 20, 13, 0,
      1,  2,  3,  4,  5,  6,  7,  8,  9,  18, 36, 34, 36, 32, 26, 30,
      36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36,
      36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 19, 36, 33, 28, 15,
      36, 36, 36, 36, 36, 36, 24, 36, 36, 36, 36, 36, 36, 36, 36, 25,
      36, 36, 36, 36, 36, 35, 36, 36, 36, 36, 36, 27, 36, 22};
  return i < 33 || i > 126 ? 36 : loc[i - 33];
}


x86 assembly (clang, -O0):
<opc>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x21,-0x4(%rbp)
jl     111b <opc+0x1b>
cmpl   $0x7e,-0x4(%rbp)
jle    1128 <opc+0x28>
mov    $0x24,%eax
mov    %eax,-0x8(%rbp)
jmp    113e <opc+0x3e>
mov    -0x4(%rbp),%eax
sub    $0x21,%eax
movslq %eax,%rcx
lea    0xec8(%rip),%rax
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<opc>:
lea    -0x7f(%rdi),%ecx
mov    $0x24,%eax
cmp    $0xffffffa2,%ecx
jb     111a <opc+0x1a>
add    $0xffffffdf,%edi
lea    0xee9(%rip),%rax
mov    (%rax,%rdi,4),%eax
ret

LLVM IR (-O0):
@opc.loc = internal constant [94 x i32] [i32 16, i32 29, i32 31, i32 17, i32 14, i32 23, i32 36, i32 36, i32 36, i32 12, i32 10, i32 21, i32 11, i32 20, i32 13, i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 18, i32 36, i32 34, i32 36, i32 32, i32 26, i32 30, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 19, i32 36, i32 33, i32 28, i32 15, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 24, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 25, i32 36, i32 36, i32 36, i32 36, i32 36, i32 35, i32 36, i32 36, i32 36, i32 36, i32 36, i32 27, i32 36, i32 22]
define i32 @opc(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp slt i32 %3, 33
br i1 %4, label %8, label %5
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp sgt i32 %6, 126
br i1 %7, label %8, label %9
8: ; preds = %5, %1
br label %15
9: ; preds = %5
%10 = load i32, i32* %2
%11 = sub nsw i32 %10, 33
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [94 x i32], [94 x i32]* @opc.loc, i64 0, i64 %12
%14 = load i32, i32* %13
br label %15
15: ; preds = %9, %8
%16 = phi i32 [ 36, %8 ], [ %14, %9 ]
ret i32 %16
}

LLVM IR (-O2):
@opc.loc = internal unnamed_addr constant [94 x i32] [i32 16, i32 29, i32 31, i32 17, i32 14, i32 23, i32 36, i32 36, i32 36, i32 12, i32 10, i32 21, i32 11, i32 20, i32 13, i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 18, i32 36, i32 34, i32 36, i32 32, i32 26, i32 30, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 19, i32 36, i32 33, i32 28, i32 15, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 24, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 36, i32 25, i32 36, i32 36, i32 36, i32 36, i32 36, i32 35, i32 36, i32 36, i32 36, i32 36, i32 36, i32 27, i32 36, i32 22]
define i32 @opc(i32 %0) {
%2 = add i32 %0, -127
%3 = icmp ult i32 %2, -94
br i1 %3, label %9, label %4
4: ; preds = %1
%5 = add nsw i32 %0, -33
%6 = zext i32 %5 to i64
%7 = getelementptr inbounds [94 x i32], [94 x i32]* @opc.loc, i64 0, i64 %6
%8 = load i32, i32* %7
br label %9
9: ; preds = %1, %4
%10 = phi i32 [ %8, %4 ], [ 36, %1 ]
ret i32 %10
}