#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 */

/* Variables and functions */
int /*<<< orphan*/ obtener_elemento(char *, char *, int, int);
scalar_t__ strcmp(char *, char *);
int obtener_cod_instruc(char *inst_o_dato) {
  char inst[5];
  obtener_elemento(inst_o_dato, inst, 1, 5);
  if (strcmp(inst, "AND") == 0)
    return 0;
  if (strcmp(inst, "ADD") == 0)
    return 1;
  if (strcmp(inst, "LDA") == 0)
    return 2;
  if (strcmp(inst, "STA") == 0)
    return 3;
  if (strcmp(inst, "BUN") == 0)
    return 4;
  if (strcmp(inst, "BSA") == 0)
    return 5;
  if (strcmp(inst, "ISZ") == 0)
    return 6;
  if (strcmp(inst, "CLA") == 0)
    return 7;
  if (strcmp(inst, "CLE") == 0)
    return 8;
  if (strcmp(inst, "CMA") == 0)
    return 9;
  if (strcmp(inst, "CME") == 0)
    return 10;
  if (strcmp(inst, "CIR") == 0)
    return 11;
  if (strcmp(inst, "CIL") == 0)
    return 12;
  if (strcmp(inst, "INC") == 0)
    return 13;
  if (strcmp(inst, "SPA") == 0)
    return 14;
  if (strcmp(inst, "SNA") == 0)
    return 15;
  if (strcmp(inst, "SZA") == 0)
    return 16;
  if (strcmp(inst, "SZE") == 0)
    return 17;
  if (strcmp(inst, "HLT") == 0)
    return 18;
  if (strcmp(inst, "INP") == 0)
    return 19;
  if (strcmp(inst, "OUT") == 0)
    return 20;
  else
    return -1;
}


x86 assembly (clang, -O0):
<obtener_cod_instruc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x15(%rbp),%rsi
mov    $0x1,%edx
mov    $0x5,%ecx
call   1040 <obtener_elemento@plt>
lea    -0x15(%rbp),%rdi
lea    0xeb2(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1169 <obtener_cod_instruc+0x49>
movl   $0x0,-0x4(%rbp)
jmp    1468 <obtener_cod_instruc+0x348>
lea    -0x15(%rbp),%rdi
lea    0xe90(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    118f <obtener_cod_instruc+0x6f>
movl   $0x1,-0x4(%rbp)
jmp    1468 <obtener_cod_instruc+0x348>
lea    -0x15(%rbp),%rdi
lea    0xe6e(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11b5 <obtener_cod_instruc+0x95>
movl   $0x2,-0x4(%rbp)
jmp    1468 <obtener_cod_instruc+0x348>
lea    -0x15(%rbp),%rdi
lea    0xe4c(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11db <obtener_cod_instruc+0xbb>
movl   $0x3,-0x4(%rbp)
jmp    1468 <obtener_cod_instruc+0x348>
lea    -0x15(%rbp),%rdi
lea    0xe2a(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1201 <obtener_cod_instruc+0xe1>
movl   $0x4,-0x4(%rbp)
jmp    1468 <obtener_cod_instruc+0x348>
lea    -0x15(%rbp),%rdi
lea    0xe08(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1227 <obtener_cod_instruc+0x107>
movl   $0x5,-0x4(%rbp)
jmp    1468 <obtener_cod_instruc+0x348>
lea    -0x15(%rbp),%rdi
lea    0xde6(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    124d <obtener_cod_instruc+0x12d>
movl   $0x6,-0x4(%rbp)
jmp    1468 <obtener_cod_instruc+0x348>
lea    -0x15(%rbp),%rdi
lea    0xdc4(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1273 <obtener_cod_instruc+0x153>
movl   $0x7,-0x4(%rbp)
jmp    1468 <obtener_cod_instruc+0x348>
lea    -0x15(%rbp),%rdi
lea    0xda2(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1299 <obtener_cod_instruc+0x179>
movl   $0x8,-0x4(%rbp)
jmp    1468 <obtener_cod_instruc+0x348>
lea    -0x15(%rbp),%rdi
lea    0xd80(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    12bf <obtener_cod_instruc+0x19f>
movl   $0x9,-0x4(%rbp)
jmp    1468 <obtener_cod_instruc+0x348>
lea    -0x15(%rbp),%rdi
lea    0xd5e(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    12e5 <obtener_cod_instruc+0x1c5>
movl   $0xa,-0x4(%rbp)
jmp    1468 <obtener_cod_instruc+0x348>
lea    -0x15(%rbp),%rdi
lea    0xd3c(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    130b <obtener_cod_instruc+0x1eb>
movl   $0xb,-0x4(%rbp)
jmp    1468 <obtener_cod_instruc+0x348>
lea    -0x15(%rbp),%rdi
lea    0xd1a(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1331 <obtener_cod_instruc+0x211>
movl   $0xc,-0x4(%rbp)
jmp    1468 <obtener_cod_instruc+0x348>
lea    -0x15(%rbp),%rdi
lea    0xcf8(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1357 <obtener_cod_instruc+0x237>
movl   $0xd,-0x4(%rbp)
jmp    1468 <obtener_cod_instruc+0x348>
lea    -0x15(%rbp),%rdi
lea    0xcd6(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    137d <obtener_cod_instruc+0x25d>
movl   $0xe,-0x4(%rbp)
jmp    1468 <obtener_cod_instruc+0x348>
lea    -0x15(%rbp),%rdi
lea    0xcb4(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    13a3 <obtener_cod_instruc+0x283>
movl   $0xf,-0x4(%rbp)
jmp    1468 <obtener_cod_instruc+0x348>
lea    -0x15(%rbp),%rdi
lea    0xc92(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    13c9 <obtener_cod_instruc+0x2a9>
movl   $0x10,-0x4(%rbp)
jmp    1468 <obtener_cod_instruc+0x348>
lea    -0x15(%rbp),%rdi
lea    0xc70(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    13ef <obtener_cod_instruc+0x2cf>
movl   $0x11,-0x4(%rbp)
jmp    1468 <obtener_cod_instruc+0x348>
lea    -0x15(%rbp),%rdi
lea    0xc4e(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1415 <obtener_cod_instruc+0x2f5>
movl   $0x12,-0x4(%rbp)
jmp    1468 <obtener_cod_instruc+0x348>
lea    -0x15(%rbp),%rdi
lea    0xc2c(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    143b <obtener_cod_instruc+0x31b>
movl   $0x13,-0x4(%rbp)
jmp    1468 <obtener_cod_instruc+0x348>
lea    -0x15(%rbp),%rdi
lea    0xc0a(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1461 <obtener_cod_instruc+0x341>
movl   $0x14,-0x4(%rbp)
jmp    1468 <obtener_cod_instruc+0x348>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<obtener_cod_instruc>:
push   %rbp
push   %rbx
push   %rax
lea    0x3(%rsp),%rbx
mov    $0x1,%ebp
mov    %rbx,%rsi
mov    $0x1,%edx
mov    $0x5,%ecx
call   1040 <obtener_elemento@plt>
lea    0xeba(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1363 <obtener_cod_instruc+0x243>
lea    0xea6(%rip),%rsi
lea    0x3(%rsp),%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     13e3 <obtener_cod_instruc+0x2c3>
lea    0xe90(%rip),%rsi
lea    0x3(%rsp),%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1367 <obtener_cod_instruc+0x247>
lea    0xe7a(%rip),%rsi
lea    0x3(%rsp),%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     136e <obtener_cod_instruc+0x24e>
lea    0xe64(%rip),%rsi
lea    0x3(%rsp),%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1375 <obtener_cod_instruc+0x255>
lea    0xe4e(%rip),%rsi
lea    0x3(%rsp),%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     137c <obtener_cod_instruc+0x25c>
lea    0xe38(%rip),%rsi
lea    0x3(%rsp),%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1383 <obtener_cod_instruc+0x263>
lea    0xe22(%rip),%rsi
lea    0x3(%rsp),%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     138a <obtener_cod_instruc+0x26a>
lea    0xe0c(%rip),%rsi
lea    0x3(%rsp),%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1391 <obtener_cod_instruc+0x271>
lea    0xdf6(%rip),%rsi
lea    0x3(%rsp),%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1398 <obtener_cod_instruc+0x278>
lea    0xde0(%rip),%rsi
lea    0x3(%rsp),%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     139f <obtener_cod_instruc+0x27f>
lea    0xdca(%rip),%rsi
lea    0x3(%rsp),%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     13a6 <obtener_cod_instruc+0x286>
lea    0xdb4(%rip),%rsi
lea    0x3(%rsp),%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     13ad <obtener_cod_instruc+0x28d>
lea    0xd9e(%rip),%rsi
lea    0x3(%rsp),%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     13b4 <obtener_cod_instruc+0x294>
lea    0xd88(%rip),%rsi
lea    0x3(%rsp),%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     13bb <obtener_cod_instruc+0x29b>
lea    0xd72(%rip),%rsi
lea    0x3(%rsp),%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     13c2 <obtener_cod_instruc+0x2a2>
lea    0xd5c(%rip),%rsi
lea    0x3(%rsp),%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     13c9 <obtener_cod_instruc+0x2a9>
lea    0xd46(%rip),%rsi
lea    0x3(%rsp),%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     13d0 <obtener_cod_instruc+0x2b0>
lea    0xd30(%rip),%rsi
lea    0x3(%rsp),%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     13d7 <obtener_cod_instruc+0x2b7>
lea    0xd1a(%rip),%rsi
lea    0x3(%rsp),%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     13de <obtener_cod_instruc+0x2be>
lea    0xd04(%rip),%rsi
lea    0x3(%rsp),%rdi
call   1030 <strcmp@plt>
neg    %rax
sbb    %ebp,%ebp
or     $0x14,%ebp
jmp    13e3 <obtener_cod_instruc+0x2c3>
xor    %ebp,%ebp
jmp    13e3 <obtener_cod_instruc+0x2c3>
mov    $0x2,%ebp
jmp    13e3 <obtener_cod_instruc+0x2c3>
mov    $0x3,%ebp
jmp    13e3 <obtener_cod_instruc+0x2c3>
mov    $0x4,%ebp
jmp    13e3 <obtener_cod_instruc+0x2c3>
mov    $0x5,%ebp
jmp    13e3 <obtener_cod_instruc+0x2c3>
mov    $0x6,%ebp
jmp    13e3 <obtener_cod_instruc+0x2c3>
mov    $0x7,%ebp
jmp    13e3 <obtener_cod_instruc+0x2c3>
mov    $0x8,%ebp
jmp    13e3 <obtener_cod_instruc+0x2c3>
mov    $0x9,%ebp
jmp    13e3 <obtener_cod_instruc+0x2c3>
mov    $0xa,%ebp
jmp    13e3 <obtener_cod_instruc+0x2c3>
mov    $0xb,%ebp
jmp    13e3 <obtener_cod_instruc+0x2c3>
mov    $0xc,%ebp
jmp    13e3 <obtener_cod_instruc+0x2c3>
mov    $0xd,%ebp
jmp    13e3 <obtener_cod_instruc+0x2c3>
mov    $0xe,%ebp
jmp    13e3 <obtener_cod_instruc+0x2c3>
mov    $0xf,%ebp
jmp    13e3 <obtener_cod_instruc+0x2c3>
mov    $0x10,%ebp
jmp    13e3 <obtener_cod_instruc+0x2c3>
mov    $0x11,%ebp
jmp    13e3 <obtener_cod_instruc+0x2c3>
mov    $0x12,%ebp
jmp    13e3 <obtener_cod_instruc+0x2c3>
mov    $0x13,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"AND\00"
@.str.1 = [4 x i8] c"ADD\00"
@.str.2 = [4 x i8] c"LDA\00"
@.str.3 = [4 x i8] c"STA\00"
@.str.4 = [4 x i8] c"BUN\00"
@.str.5 = [4 x i8] c"BSA\00"
@.str.6 = [4 x i8] c"ISZ\00"
@.str.7 = [4 x i8] c"CLA\00"
@.str.8 = [4 x i8] c"CLE\00"
@.str.9 = [4 x i8] c"CMA\00"
@.str.10 = [4 x i8] c"CME\00"
@.str.11 = [4 x i8] c"CIR\00"
@.str.12 = [4 x i8] c"CIL\00"
@.str.13 = [4 x i8] c"INC\00"
@.str.14 = [4 x i8] c"SPA\00"
@.str.15 = [4 x i8] c"SNA\00"
@.str.16 = [4 x i8] c"SZA\00"
@.str.17 = [4 x i8] c"SZE\00"
@.str.18 = [4 x i8] c"HLT\00"
@.str.19 = [4 x i8] c"INP\00"
@.str.20 = [4 x i8] c"OUT\00"
define i32 @obtener_cod_instruc(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca [5 x i8]
store i8* %0, i8** %3
%5 = load i8*, i8** %3
%6 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%7 = call i32 @obtener_elemento(i8* %5, i8* %6, i32 1, i32 5)
%8 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%9 = call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %1
store i32 0, i32* %2
br label %113
12: ; preds = %1
%13 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%14 = call i64 @strcmp(i8* %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %12
store i32 1, i32* %2
br label %113
17: ; preds = %12
%18 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%19 = call i64 @strcmp(i8* %18, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %17
store i32 2, i32* %2
br label %113
22: ; preds = %17
%23 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%24 = call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %22
store i32 3, i32* %2
br label %113
27: ; preds = %22
%28 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%29 = call i64 @strcmp(i8* %28, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %27
store i32 4, i32* %2
br label %113
32: ; preds = %27
%33 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%34 = call i64 @strcmp(i8* %33, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %32
store i32 5, i32* %2
br label %113
37: ; preds = %32
%38 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%39 = call i64 @strcmp(i8* %38, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %37
store i32 6, i32* %2
br label %113
42: ; preds = %37
%43 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%44 = call i64 @strcmp(i8* %43, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %47
46: ; preds = %42
store i32 7, i32* %2
br label %113
47: ; preds = %42
%48 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%49 = call i64 @strcmp(i8* %48, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %47
store i32 8, i32* %2
br label %113
52: ; preds = %47
%53 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%54 = call i64 @strcmp(i8* %53, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %57
56: ; preds = %52
store i32 9, i32* %2
br label %113
57: ; preds = %52
%58 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%59 = call i64 @strcmp(i8* %58, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%60 = icmp eq i64 %59, 0
br i1 %60, label %61, label %62
61: ; preds = %57
store i32 10, i32* %2
br label %113
62: ; preds = %57
%63 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%64 = call i64 @strcmp(i8* %63, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %67
66: ; preds = %62
store i32 11, i32* %2
br label %113
67: ; preds = %62
%68 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%69 = call i64 @strcmp(i8* %68, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %72
71: ; preds = %67
store i32 12, i32* %2
br label %113
72: ; preds = %67
%73 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%74 = call i64 @strcmp(i8* %73, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %77
76: ; preds = %72
store i32 13, i32* %2
br label %113
77: ; preds = %72
%78 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%79 = call i64 @strcmp(i8* %78, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%80 = icmp eq i64 %79, 0
br i1 %80, label %81, label %82
81: ; preds = %77
store i32 14, i32* %2
br label %113
82: ; preds = %77
%83 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%84 = call i64 @strcmp(i8* %83, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0))
%85 = icmp eq i64 %84, 0
br i1 %85, label %86, label %87
86: ; preds = %82
store i32 15, i32* %2
br label %113
87: ; preds = %82
%88 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%89 = call i64 @strcmp(i8* %88, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0))
%90 = icmp eq i64 %89, 0
br i1 %90, label %91, label %92
91: ; preds = %87
store i32 16, i32* %2
br label %113
92: ; preds = %87
%93 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%94 = call i64 @strcmp(i8* %93, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0))
%95 = icmp eq i64 %94, 0
br i1 %95, label %96, label %97
96: ; preds = %92
store i32 17, i32* %2
br label %113
97: ; preds = %92
%98 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%99 = call i64 @strcmp(i8* %98, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0))
%100 = icmp eq i64 %99, 0
br i1 %100, label %101, label %102
101: ; preds = %97
store i32 18, i32* %2
br label %113
102: ; preds = %97
%103 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%104 = call i64 @strcmp(i8* %103, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0))
%105 = icmp eq i64 %104, 0
br i1 %105, label %106, label %107
106: ; preds = %102
store i32 19, i32* %2
br label %113
107: ; preds = %102
%108 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%109 = call i64 @strcmp(i8* %108, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i64 0, i64 0))
%110 = icmp eq i64 %109, 0
br i1 %110, label %111, label %112
111: ; preds = %107
store i32 20, i32* %2
br label %113
112: ; preds = %107
store i32 -1, i32* %2
br label %113
113: ; preds = %112, %111, %106, %101, %96, %91, %86, %81, %76, %71, %66, %61, %56, %51, %46, %41, %36, %31, %26, %21, %16, %11
%114 = load i32, i32* %2
ret i32 %114
}

LLVM IR (-O2):
@.str = [4 x i8] c"AND\00"
@.str.1 = [4 x i8] c"ADD\00"
@.str.2 = [4 x i8] c"LDA\00"
@.str.3 = [4 x i8] c"STA\00"
@.str.4 = [4 x i8] c"BUN\00"
@.str.5 = [4 x i8] c"BSA\00"
@.str.6 = [4 x i8] c"ISZ\00"
@.str.7 = [4 x i8] c"CLA\00"
@.str.8 = [4 x i8] c"CLE\00"
@.str.9 = [4 x i8] c"CMA\00"
@.str.10 = [4 x i8] c"CME\00"
@.str.11 = [4 x i8] c"CIR\00"
@.str.12 = [4 x i8] c"CIL\00"
@.str.13 = [4 x i8] c"INC\00"
@.str.14 = [4 x i8] c"SPA\00"
@.str.15 = [4 x i8] c"SNA\00"
@.str.16 = [4 x i8] c"SZA\00"
@.str.17 = [4 x i8] c"SZE\00"
@.str.18 = [4 x i8] c"HLT\00"
@.str.19 = [4 x i8] c"INP\00"
@.str.20 = [4 x i8] c"OUT\00"
define i32 @obtener_cod_instruc(i8* %0) {
%2 = alloca [5 x i8]
%3 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 0
%4 = call i32 @obtener_elemento(i8* %0, i8* %3, i32 1, i32 5)
%5 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
br i1 %6, label %68, label %7
7: ; preds = %1
%8 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%9 = icmp eq i64 %8, 0
br i1 %9, label %68, label %10
10: ; preds = %7
%11 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %68, label %13
13: ; preds = %10
%14 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %68, label %16
16: ; preds = %13
%17 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %68, label %19
19: ; preds = %16
%20 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %68, label %22
22: ; preds = %19
%23 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %68, label %25
25: ; preds = %22
%26 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %68, label %28
28: ; preds = %25
%29 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %68, label %31
31: ; preds = %28
%32 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %68, label %34
34: ; preds = %31
%35 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %68, label %37
37: ; preds = %34
%38 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %68, label %40
40: ; preds = %37
%41 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %68, label %43
43: ; preds = %40
%44 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %68, label %46
46: ; preds = %43
%47 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %68, label %49
49: ; preds = %46
%50 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0))
%51 = icmp eq i64 %50, 0
br i1 %51, label %68, label %52
52: ; preds = %49
%53 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0))
%54 = icmp eq i64 %53, 0
br i1 %54, label %68, label %55
55: ; preds = %52
%56 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0))
%57 = icmp eq i64 %56, 0
br i1 %57, label %68, label %58
58: ; preds = %55
%59 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0))
%60 = icmp eq i64 %59, 0
br i1 %60, label %68, label %61
61: ; preds = %58
%62 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0))
%63 = icmp eq i64 %62, 0
br i1 %63, label %68, label %64
64: ; preds = %61
%65 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i64 0, i64 0))
%66 = icmp eq i64 %65, 0
%67 = select i1 %66, i32 20, i32 -1
br label %68
68: ; preds = %64, %61, %58, %55, %52, %49, %46, %43, %40, %37, %34, %31, %28, %25, %22, %19, %16, %13, %10, %7, %1
%69 = phi i32 [ 0, %1 ], [ 1, %7 ], [ 2, %10 ], [ 3, %13 ], [ 4, %16 ], [ 5, %19 ], [ 6, %22 ], [ 7, %25 ], [ 8, %28 ], [ 9, %31 ], [ 10, %34 ], [ 11, %37 ], [ 12, %40 ], [ 13, %43 ], [ 14, %46 ], [ 15, %49 ], [ 16, %52 ], [ 17, %55 ], [ 18, %58 ], [ 19, %61 ], [ %67, %64 ]
ret i32 %69
}