heir10(lval) int lval[];
{
  int k;
  char *ptr;
  if (match("++")) {
    if ((k = heir10(lval)) == 0) {
      needlval();
      return 0;
    }
    if (lval[1])
      mnem_push();
    rvalue(lval);
    m_inc();
    ptr = lval[0];
    if ((ptr[11] == 3) & (ptr[12] == 2))
      m_inc();
    store(lval);
    return 0;
  } else if (match("--")) {
    if ((k = heir10(lval)) == 0) {
      needlval();
      return 0;
    }
    if (lval[1])
      mnem_push();
    rvalue(lval);
    m_dec();
    ptr = lval[0];
    if ((ptr[11] == 3) & (ptr[12] == 2))
      m_dec();
    store(lval);
    return 0;
  } else if (match("-")) {
    k = heir10(lval);
    if (k)
      rvalue(lval);
    m_neg();
    return 0;
  } else if (match("*")) {
    k = heir10(lval);
    if (k)
      rvalue(lval);
    if (ptr = lval[0])
      lval[1] = ptr[12];
    lval[0] = 0;
    return 1;
  } else if (match("&")) {
    k = heir10(lval);
    if (k == 0) {
      error("illegal address");
      return 0;
    } else if (lval[1])
      return 0;
    else {
      immed();
      outstr(ptr = lval[0]);
      nl();
      lval[1] = ptr[12];
      return 0;
    }
  } else {
    k = heir11(lval);
    if (match("++")) {
      if (k == 0) {
        needlval();
        return 0;
      }
      if (lval[1])
        mnem_push();
      rvalue(lval);
      m_inc();
      ptr = lval[0];
      if ((ptr[11] == 3) & (ptr[12] == 2))
        m_inc();
      store(lval);
      m_dec();
      if ((ptr[11] == 3) & (ptr[12] == 2))
        m_dec();
      return 0;
    } else if (match("--")) {
      if (k == 0) {
        needlval();
        return 0;
      }
      if (lval[1])
        mnem_push();
      rvalue(lval);
      m_dec();
      if ((ptr[11] == 3) & (ptr[12] == 2))
        m_dec();
      store(lval);
      m_inc();
      if ((ptr[11] == 3) & (ptr[12] == 2))
        m_inc();
      return 0;
    } else
      return k;
  }
}


x86 assembly (clang, -O0):
<heir10>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
lea    0xe0d(%rip),%rdi
mov    $0x0,%al
call   10b0 <match@plt>
cmp    $0x0,%eax
je     12ad <heir10+0xcd>
mov    -0x10(%rbp),%rdi
call   1040 <heir10@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
jne    122b <heir10+0x4b>
mov    $0x0,%al
call   10d0 <needlval@plt>
movl   $0x0,-0x4(%rbp)
jmp    16bc <heir10+0x4dc>
mov    -0x10(%rbp),%rax
cmpl   $0x0,0x4(%rax)
je     1240 <heir10+0x60>
mov    $0x0,%al
call   1030 <mnem_push@plt>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1060 <rvalue@plt>
mov    $0x0,%al
call   1100 <m_inc@plt>
mov    -0x10(%rbp),%rax
movslq (%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
movsbl 0xb(%rax),%eax
cmp    $0x3,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    -0x20(%rbp),%rcx
movsbl 0xc(%rcx),%ecx
cmp    $0x2,%ecx
sete   %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     1296 <heir10+0xb6>
mov    $0x0,%al
call   1100 <m_inc@plt>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1050 <store@plt>
movl   $0x0,-0x4(%rbp)
jmp    16bc <heir10+0x4dc>
lea    0xd4f(%rip),%rdi
mov    $0x0,%al
call   10b0 <match@plt>
cmp    $0x0,%eax
je     136e <heir10+0x18e>
mov    -0x10(%rbp),%rdi
call   1040 <heir10@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
jne    12ec <heir10+0x10c>
mov    $0x0,%al
call   10d0 <needlval@plt>
movl   $0x0,-0x4(%rbp)
jmp    16bc <heir10+0x4dc>
mov    -0x10(%rbp),%rax
cmpl   $0x0,0x4(%rax)
je     1301 <heir10+0x121>
mov    $0x0,%al
call   1030 <mnem_push@plt>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1060 <rvalue@plt>
mov    $0x0,%al
call   10e0 <m_dec@plt>
mov    -0x10(%rbp),%rax
movslq (%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
movsbl 0xb(%rax),%eax
cmp    $0x3,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    -0x20(%rbp),%rcx
movsbl 0xc(%rcx),%ecx
cmp    $0x2,%ecx
sete   %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     1357 <heir10+0x177>
mov    $0x0,%al
call   10e0 <m_dec@plt>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1050 <store@plt>
movl   $0x0,-0x4(%rbp)
jmp    16bc <heir10+0x4dc>
lea    0xc8f(%rip),%rdi
mov    $0x0,%al
call   10b0 <match@plt>
cmp    $0x0,%eax
je     13b9 <heir10+0x1d9>
mov    -0x10(%rbp),%rdi
call   1040 <heir10@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     13a6 <heir10+0x1c6>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1060 <rvalue@plt>
mov    $0x0,%al
call   10f0 <m_neg@plt>
movl   $0x0,-0x4(%rbp)
jmp    16bc <heir10+0x4dc>
lea    0xc46(%rip),%rdi
mov    $0x0,%al
call   10b0 <match@plt>
cmp    $0x0,%eax
je     142b <heir10+0x24b>
mov    -0x10(%rbp),%rdi
call   1040 <heir10@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     13f1 <heir10+0x211>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1060 <rvalue@plt>
mov    -0x10(%rbp),%rax
movslq (%rax),%rax
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
je     1415 <heir10+0x235>
mov    -0x20(%rbp),%rax
movsbl 0xc(%rax),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x10(%rbp),%rax
movl   $0x0,(%rax)
movl   $0x1,-0x4(%rbp)
jmp    16bc <heir10+0x4dc>
lea    0xbd6(%rip),%rdi
mov    $0x0,%al
call   10b0 <match@plt>
cmp    $0x0,%eax
je     14c7 <heir10+0x2e7>
mov    -0x10(%rbp),%rdi
call   1040 <heir10@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    1472 <heir10+0x292>
lea    0xbab(%rip),%rdi
mov    $0x0,%al
call   10c0 <error@plt>
movl   $0x0,-0x4(%rbp)
jmp    16bc <heir10+0x4dc>
mov    -0x10(%rbp),%rax
cmpl   $0x0,0x4(%rax)
je     148c <heir10+0x2ac>
movl   $0x0,-0x4(%rbp)
jmp    16bc <heir10+0x4dc>
mov    $0x0,%al
call   1080 <immed@plt>
mov    -0x10(%rbp),%rax
movslq (%rax),%rdi
mov    %rdi,-0x20(%rbp)
mov    $0x0,%al
call   1090 <outstr@plt>
mov    $0x0,%al
call   1070 <nl@plt>
mov    -0x20(%rbp),%rax
movsbl 0xc(%rax),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,0x4(%rax)
movl   $0x0,-0x4(%rbp)
jmp    16bc <heir10+0x4dc>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   10a0 <heir11@plt>
mov    %eax,-0x14(%rbp)
lea    0xb24(%rip),%rdi
mov    $0x0,%al
call   10b0 <match@plt>
cmp    $0x0,%eax
je     15cb <heir10+0x3eb>
cmpl   $0x0,-0x14(%rbp)
jne    1509 <heir10+0x329>
mov    $0x0,%al
call   10d0 <needlval@plt>
movl   $0x0,-0x4(%rbp)
jmp    16bc <heir10+0x4dc>
mov    -0x10(%rbp),%rax
cmpl   $0x0,0x4(%rax)
je     151e <heir10+0x33e>
mov    $0x0,%al
call   1030 <mnem_push@plt>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1060 <rvalue@plt>
mov    $0x0,%al
call   1100 <m_inc@plt>
mov    -0x10(%rbp),%rax
movslq (%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
movsbl 0xb(%rax),%eax
cmp    $0x3,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    -0x20(%rbp),%rcx
movsbl 0xc(%rcx),%ecx
cmp    $0x2,%ecx
sete   %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     1574 <heir10+0x394>
mov    $0x0,%al
call   1100 <m_inc@plt>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1050 <store@plt>
mov    $0x0,%al
call   10e0 <m_dec@plt>
mov    -0x20(%rbp),%rax
movsbl 0xb(%rax),%eax
cmp    $0x3,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    -0x20(%rbp),%rcx
movsbl 0xc(%rcx),%ecx
cmp    $0x2,%ecx
sete   %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     15bf <heir10+0x3df>
mov    $0x0,%al
call   10e0 <m_dec@plt>
movl   $0x0,-0x4(%rbp)
jmp    16bc <heir10+0x4dc>
lea    0xa31(%rip),%rdi
mov    $0x0,%al
call   10b0 <match@plt>
cmp    $0x0,%eax
je     16b6 <heir10+0x4d6>
cmpl   $0x0,-0x14(%rbp)
jne    15ff <heir10+0x41f>
mov    $0x0,%al
call   10d0 <needlval@plt>
movl   $0x0,-0x4(%rbp)
jmp    16bc <heir10+0x4dc>
mov    -0x10(%rbp),%rax
cmpl   $0x0,0x4(%rax)
je     1614 <heir10+0x434>
mov    $0x0,%al
call   1030 <mnem_push@plt>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1060 <rvalue@plt>
mov    $0x0,%al
call   10e0 <m_dec@plt>
mov    -0x20(%rbp),%rax
movsbl 0xb(%rax),%eax
cmp    $0x3,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    -0x20(%rbp),%rcx
movsbl 0xc(%rcx),%ecx
cmp    $0x2,%ecx
sete   %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     165f <heir10+0x47f>
mov    $0x0,%al
call   10e0 <m_dec@plt>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1050 <store@plt>
mov    $0x0,%al
call   1100 <m_inc@plt>
mov    -0x20(%rbp),%rax
movsbl 0xb(%rax),%eax
cmp    $0x3,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    -0x20(%rbp),%rcx
movsbl 0xc(%rcx),%ecx
cmp    $0x2,%ecx
sete   %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     16aa <heir10+0x4ca>
mov    $0x0,%al
call   1100 <m_inc@plt>
movl   $0x0,-0x4(%rbp)
jmp    16bc <heir10+0x4dc>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<heir10>:
push   %rbp
push   %r14
push   %rbx
mov    %rdi,%rbx
lea    0xe12(%rip),%rdi
xor    %eax,%eax
call   10b0 <match@plt>
test   %eax,%eax
je     1241 <heir10+0x61>
mov    %rbx,%rdi
call   1040 <heir10@plt>
test   %eax,%eax
je     145d <heir10+0x27d>
cmpl   $0x0,0x4(%rbx)
je     1216 <heir10+0x36>
xor    %eax,%eax
call   1030 <mnem_push@plt>
xor    %ebp,%ebp
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <rvalue@plt>
xor    %eax,%eax
call   1100 <m_inc@plt>
movslq (%rbx),%rax
cmpb   $0x3,0xb(%rax)
jne    1299 <heir10+0xb9>
cmpb   $0x2,0xc(%rax)
jne    1299 <heir10+0xb9>
xor    %eax,%eax
call   1100 <m_inc@plt>
jmp    1299 <heir10+0xb9>
lea    0xdbb(%rip),%rdi
xor    %eax,%eax
call   10b0 <match@plt>
test   %eax,%eax
je     12a8 <heir10+0xc8>
mov    %rbx,%rdi
call   1040 <heir10@plt>
test   %eax,%eax
je     145d <heir10+0x27d>
cmpl   $0x0,0x4(%rbx)
je     1270 <heir10+0x90>
xor    %eax,%eax
call   1030 <mnem_push@plt>
xor    %ebp,%ebp
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <rvalue@plt>
xor    %eax,%eax
call   10e0 <m_dec@plt>
movslq (%rbx),%rax
cmpb   $0x3,0xb(%rax)
jne    1299 <heir10+0xb9>
cmpb   $0x2,0xc(%rax)
jne    1299 <heir10+0xb9>
xor    %eax,%eax
call   10e0 <m_dec@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <store@plt>
jmp    1466 <heir10+0x286>
lea    0xd55(%rip),%rdi
xor    %eax,%eax
call   10b0 <match@plt>
test   %eax,%eax
je     12de <heir10+0xfe>
mov    %rbx,%rdi
call   1040 <heir10@plt>
test   %eax,%eax
je     12d0 <heir10+0xf0>
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <rvalue@plt>
xor    %ebp,%ebp
xor    %eax,%eax
call   10f0 <m_neg@plt>
jmp    1466 <heir10+0x286>
lea    0xd21(%rip),%rdi
xor    %eax,%eax
call   10b0 <match@plt>
test   %eax,%eax
je     1325 <heir10+0x145>
mov    %rbx,%rdi
call   1040 <heir10@plt>
test   %eax,%eax
je     1306 <heir10+0x126>
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <rvalue@plt>
movslq (%rbx),%rax
test   %rax,%rax
je     1315 <heir10+0x135>
movsbl 0xc(%rax),%eax
mov    %eax,0x4(%rbx)
movl   $0x0,(%rbx)
mov    $0x1,%ebp
jmp    1466 <heir10+0x286>
lea    0xcdc(%rip),%rdi
xor    %eax,%eax
call   10b0 <match@plt>
mov    %rbx,%rdi
test   %eax,%eax
je     137d <heir10+0x19d>
call   1040 <heir10@plt>
test   %eax,%eax
je     1402 <heir10+0x222>
xor    %ebp,%ebp
cmpl   $0x0,0x4(%rbx)
jne    1466 <heir10+0x286>
xor    %ebp,%ebp
xor    %eax,%eax
call   1080 <immed@plt>
movslq (%rbx),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <outstr@plt>
xor    %eax,%eax
call   1070 <nl@plt>
movsbl 0xc(%r14),%eax
mov    %eax,0x4(%rbx)
jmp    1466 <heir10+0x286>
xor    %eax,%eax
call   10a0 <heir11@plt>
mov    %eax,%ebp
lea    0xc73(%rip),%rdi
xor    %eax,%eax
call   10b0 <match@plt>
test   %eax,%eax
je     1414 <heir10+0x234>
test   %ebp,%ebp
je     145d <heir10+0x27d>
cmpl   $0x0,0x4(%rbx)
je     13ad <heir10+0x1cd>
xor    %eax,%eax
call   1030 <mnem_push@plt>
xor    %ebp,%ebp
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <rvalue@plt>
xor    %eax,%eax
call   1100 <m_inc@plt>
movslq (%rbx),%r14
cmpb   $0x3,0xb(%r14)
jne    13d8 <heir10+0x1f8>
cmpb   $0x2,0xc(%r14)
jne    13d8 <heir10+0x1f8>
xor    %eax,%eax
call   1100 <m_inc@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <store@plt>
xor    %eax,%eax
call   10e0 <m_dec@plt>
cmpb   $0x3,0xb(%r14)
jne    1466 <heir10+0x286>
cmpb   $0x2,0xc(%r14)
jne    1466 <heir10+0x286>
xor    %ebp,%ebp
xor    %eax,%eax
call   10e0 <m_dec@plt>
jmp    1466 <heir10+0x286>
lea    0xc01(%rip),%rdi
xor    %ebp,%ebp
xor    %eax,%eax
call   10c0 <error@plt>
jmp    1466 <heir10+0x286>
lea    0xbe8(%rip),%rdi
xor    %eax,%eax
call   10b0 <match@plt>
test   %eax,%eax
je     1466 <heir10+0x286>
test   %ebp,%ebp
je     145d <heir10+0x27d>
cmpl   $0x0,0x4(%rbx)
je     1437 <heir10+0x257>
xor    %eax,%eax
call   1030 <mnem_push@plt>
xor    %ebp,%ebp
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <rvalue@plt>
xor    %eax,%eax
call   10e0 <m_dec@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <store@plt>
xor    %eax,%eax
call   1100 <m_inc@plt>
jmp    1466 <heir10+0x286>
xor    %ebp,%ebp
xor    %eax,%eax
call   10d0 <needlval@plt>
mov    %ebp,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"++\00"
@.str.1 = [3 x i8] c"--\00"
@.str.2 = [2 x i8] c"-\00"
@.str.3 = [2 x i8] c"*\00"
@.str.4 = [2 x i8] c"&\00"
@.str.5 = [16 x i8] c"illegal address\00"
define i32 @heir10(i32* %0) {
%2 = alloca i32
%3 = alloca i32*
%4 = alloca i32
%5 = alloca i8*
store i32* %0, i32** %3
%6 = call i32 (i8*, ...) bitcast (i32 (...)* @match to i32 (i8*, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %49
8: ; preds = %1
%9 = load i32*, i32** %3
%10 = call i32 @heir10(i32* %9)
store i32 %10, i32* %4
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = call i32 (...) @needlval()
store i32 0, i32* %2
br label %286
14: ; preds = %8
%15 = load i32*, i32** %3
%16 = getelementptr inbounds i32, i32* %15, i64 1
%17 = load i32, i32* %16
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %14
%20 = call i32 (...) @mnem_push()
br label %21
21: ; preds = %19, %14
%22 = load i32*, i32** %3
%23 = call i32 (i32*, ...) bitcast (i32 (...)* @rvalue to i32 (i32*, ...)*)(i32* %22)
%24 = call i32 (...) @m_inc()
%25 = load i32*, i32** %3
%26 = getelementptr inbounds i32, i32* %25, i64 0
%27 = load i32, i32* %26
%28 = sext i32 %27 to i64
%29 = inttoptr i64 %28 to i8*
store i8* %29, i8** %5
%30 = load i8*, i8** %5
%31 = getelementptr inbounds i8, i8* %30, i64 11
%32 = load i8, i8* %31
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 3
%35 = zext i1 %34 to i32
%36 = load i8*, i8** %5
%37 = getelementptr inbounds i8, i8* %36, i64 12
%38 = load i8, i8* %37
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 2
%41 = zext i1 %40 to i32
%42 = and i32 %35, %41
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %46
44: ; preds = %21
%45 = call i32 (...) @m_inc()
br label %46
46: ; preds = %44, %21
%47 = load i32*, i32** %3
%48 = call i32 (i32*, ...) bitcast (i32 (...)* @store to i32 (i32*, ...)*)(i32* %47)
store i32 0, i32* %2
br label %286
49: ; preds = %1
%50 = call i32 (i8*, ...) bitcast (i32 (...)* @match to i32 (i8*, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%51 = icmp ne i32 %50, 0
br i1 %51, label %52, label %93
52: ; preds = %49
%53 = load i32*, i32** %3
%54 = call i32 @heir10(i32* %53)
store i32 %54, i32* %4
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %58
56: ; preds = %52
%57 = call i32 (...) @needlval()
store i32 0, i32* %2
br label %286
58: ; preds = %52
%59 = load i32*, i32** %3
%60 = getelementptr inbounds i32, i32* %59, i64 1
%61 = load i32, i32* %60
%62 = icmp ne i32 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %58
%64 = call i32 (...) @mnem_push()
br label %65
65: ; preds = %63, %58
%66 = load i32*, i32** %3
%67 = call i32 (i32*, ...) bitcast (i32 (...)* @rvalue to i32 (i32*, ...)*)(i32* %66)
%68 = call i32 (...) @m_dec()
%69 = load i32*, i32** %3
%70 = getelementptr inbounds i32, i32* %69, i64 0
%71 = load i32, i32* %70
%72 = sext i32 %71 to i64
%73 = inttoptr i64 %72 to i8*
store i8* %73, i8** %5
%74 = load i8*, i8** %5
%75 = getelementptr inbounds i8, i8* %74, i64 11
%76 = load i8, i8* %75
%77 = sext i8 %76 to i32
%78 = icmp eq i32 %77, 3
%79 = zext i1 %78 to i32
%80 = load i8*, i8** %5
%81 = getelementptr inbounds i8, i8* %80, i64 12
%82 = load i8, i8* %81
%83 = sext i8 %82 to i32
%84 = icmp eq i32 %83, 2
%85 = zext i1 %84 to i32
%86 = and i32 %79, %85
%87 = icmp ne i32 %86, 0
br i1 %87, label %88, label %90
88: ; preds = %65
%89 = call i32 (...) @m_dec()
br label %90
90: ; preds = %88, %65
%91 = load i32*, i32** %3
%92 = call i32 (i32*, ...) bitcast (i32 (...)* @store to i32 (i32*, ...)*)(i32* %91)
store i32 0, i32* %2
br label %286
93: ; preds = %49
%94 = call i32 (i8*, ...) bitcast (i32 (...)* @match to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%95 = icmp ne i32 %94, 0
br i1 %95, label %96, label %106
96: ; preds = %93
%97 = load i32*, i32** %3
%98 = call i32 @heir10(i32* %97)
store i32 %98, i32* %4
%99 = load i32, i32* %4
%100 = icmp ne i32 %99, 0
br i1 %100, label %101, label %104
101: ; preds = %96
%102 = load i32*, i32** %3
%103 = call i32 (i32*, ...) bitcast (i32 (...)* @rvalue to i32 (i32*, ...)*)(i32* %102)
br label %104
104: ; preds = %101, %96
%105 = call i32 (...) @m_neg()
store i32 0, i32* %2
br label %286
106: ; preds = %93
%107 = call i32 (i8*, ...) bitcast (i32 (...)* @match to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%108 = icmp ne i32 %107, 0
br i1 %108, label %109, label %134
109: ; preds = %106
%110 = load i32*, i32** %3
%111 = call i32 @heir10(i32* %110)
store i32 %111, i32* %4
%112 = load i32, i32* %4
%113 = icmp ne i32 %112, 0
br i1 %113, label %114, label %117
114: ; preds = %109
%115 = load i32*, i32** %3
%116 = call i32 (i32*, ...) bitcast (i32 (...)* @rvalue to i32 (i32*, ...)*)(i32* %115)
br label %117
117: ; preds = %114, %109
%118 = load i32*, i32** %3
%119 = getelementptr inbounds i32, i32* %118, i64 0
%120 = load i32, i32* %119
%121 = sext i32 %120 to i64
%122 = inttoptr i64 %121 to i8*
store i8* %122, i8** %5
%123 = icmp ne i8* %122, null
br i1 %123, label %124, label %131
124: ; preds = %117
%125 = load i8*, i8** %5
%126 = getelementptr inbounds i8, i8* %125, i64 12
%127 = load i8, i8* %126
%128 = sext i8 %127 to i32
%129 = load i32*, i32** %3
%130 = getelementptr inbounds i32, i32* %129, i64 1
store i32 %128, i32* %130
br label %131
131: ; preds = %124, %117
%132 = load i32*, i32** %3
%133 = getelementptr inbounds i32, i32* %132, i64 0
store i32 0, i32* %133
store i32 1, i32* %2
br label %286
134: ; preds = %106
%135 = call i32 (i8*, ...) bitcast (i32 (...)* @match to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%136 = icmp ne i32 %135, 0
br i1 %136, label %137, label %165
137: ; preds = %134
%138 = load i32*, i32** %3
%139 = call i32 @heir10(i32* %138)
store i32 %139, i32* %4
%140 = load i32, i32* %4
%141 = icmp eq i32 %140, 0
br i1 %141, label %142, label %144
142: ; preds = %137
%143 = call i32 (i8*, ...) bitcast (i32 (...)* @error to i32 (i8*, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %2
br label %286
144: ; preds = %137
%145 = load i32*, i32** %3
%146 = getelementptr inbounds i32, i32* %145, i64 1
%147 = load i32, i32* %146
%148 = icmp ne i32 %147, 0
br i1 %148, label %149, label %150
149: ; preds = %144
store i32 0, i32* %2
br label %286
150: ; preds = %144
%151 = call i32 (...) @immed()
%152 = load i32*, i32** %3
%153 = getelementptr inbounds i32, i32* %152, i64 0
%154 = load i32, i32* %153
%155 = sext i32 %154 to i64
%156 = inttoptr i64 %155 to i8*
store i8* %156, i8** %5
%157 = call i32 (i8*, ...) bitcast (i32 (...)* @outstr to i32 (i8*, ...)*)(i8* %156)
%158 = call i32 (...) @nl()
%159 = load i8*, i8** %5
%160 = getelementptr inbounds i8, i8* %159, i64 12
%161 = load i8, i8* %160
%162 = sext i8 %161 to i32
%163 = load i32*, i32** %3
%164 = getelementptr inbounds i32, i32* %163, i64 1
store i32 %162, i32* %164
store i32 0, i32* %2
br label %286
165: ; preds = %134
%166 = load i32*, i32** %3
%167 = call i32 (i32*, ...) bitcast (i32 (...)* @heir11 to i32 (i32*, ...)*)(i32* %166)
store i32 %167, i32* %4
%168 = call i32 (i8*, ...) bitcast (i32 (...)* @match to i32 (i8*, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%169 = icmp ne i32 %168, 0
br i1 %169, label %170, label %228
170: ; preds = %165
%171 = load i32, i32* %4
%172 = icmp eq i32 %171, 0
br i1 %172, label %173, label %175
173: ; preds = %170
%174 = call i32 (...) @needlval()
store i32 0, i32* %2
br label %286
175: ; preds = %170
%176 = load i32*, i32** %3
%177 = getelementptr inbounds i32, i32* %176, i64 1
%178 = load i32, i32* %177
%179 = icmp ne i32 %178, 0
br i1 %179, label %180, label %182
180: ; preds = %175
%181 = call i32 (...) @mnem_push()
br label %182
182: ; preds = %180, %175
%183 = load i32*, i32** %3
%184 = call i32 (i32*, ...) bitcast (i32 (...)* @rvalue to i32 (i32*, ...)*)(i32* %183)
%185 = call i32 (...) @m_inc()
%186 = load i32*, i32** %3
%187 = getelementptr inbounds i32, i32* %186, i64 0
%188 = load i32, i32* %187
%189 = sext i32 %188 to i64
%190 = inttoptr i64 %189 to i8*
store i8* %190, i8** %5
%191 = load i8*, i8** %5
%192 = getelementptr inbounds i8, i8* %191, i64 11
%193 = load i8, i8* %192
%194 = sext i8 %193 to i32
%195 = icmp eq i32 %194, 3
%196 = zext i1 %195 to i32
%197 = load i8*, i8** %5
%198 = getelementptr inbounds i8, i8* %197, i64 12
%199 = load i8, i8* %198
%200 = sext i8 %199 to i32
%201 = icmp eq i32 %200, 2
%202 = zext i1 %201 to i32
%203 = and i32 %196, %202
%204 = icmp ne i32 %203, 0
br i1 %204, label %205, label %207
205: ; preds = %182
%206 = call i32 (...) @m_inc()
br label %207
207: ; preds = %205, %182
%208 = load i32*, i32** %3
%209 = call i32 (i32*, ...) bitcast (i32 (...)* @store to i32 (i32*, ...)*)(i32* %208)
%210 = call i32 (...) @m_dec()
%211 = load i8*, i8** %5
%212 = getelementptr inbounds i8, i8* %211, i64 11
%213 = load i8, i8* %212
%214 = sext i8 %213 to i32
%215 = icmp eq i32 %214, 3
%216 = zext i1 %215 to i32
%217 = load i8*, i8** %5
%218 = getelementptr inbounds i8, i8* %217, i64 12
%219 = load i8, i8* %218
%220 = sext i8 %219 to i32
%221 = icmp eq i32 %220, 2
%222 = zext i1 %221 to i32
%223 = and i32 %216, %222
%224 = icmp ne i32 %223, 0
br i1 %224, label %225, label %227
225: ; preds = %207
%226 = call i32 (...) @m_dec()
br label %227
227: ; preds = %225, %207
store i32 0, i32* %2
br label %286
228: ; preds = %165
%229 = call i32 (i8*, ...) bitcast (i32 (...)* @match to i32 (i8*, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%230 = icmp ne i32 %229, 0
br i1 %230, label %231, label %284
231: ; preds = %228
%232 = load i32, i32* %4
%233 = icmp eq i32 %232, 0
br i1 %233, label %234, label %236
234: ; preds = %231
%235 = call i32 (...) @needlval()
store i32 0, i32* %2
br label %286
236: ; preds = %231
%237 = load i32*, i32** %3
%238 = getelementptr inbounds i32, i32* %237, i64 1
%239 = load i32, i32* %238
%240 = icmp ne i32 %239, 0
br i1 %240, label %241, label %243
241: ; preds = %236
%242 = call i32 (...) @mnem_push()
br label %243
243: ; preds = %241, %236
%244 = load i32*, i32** %3
%245 = call i32 (i32*, ...) bitcast (i32 (...)* @rvalue to i32 (i32*, ...)*)(i32* %244)
%246 = call i32 (...) @m_dec()
%247 = load i8*, i8** %5
%248 = getelementptr inbounds i8, i8* %247, i64 11
%249 = load i8, i8* %248
%250 = sext i8 %249 to i32
%251 = icmp eq i32 %250, 3
%252 = zext i1 %251 to i32
%253 = load i8*, i8** %5
%254 = getelementptr inbounds i8, i8* %253, i64 12
%255 = load i8, i8* %254
%256 = sext i8 %255 to i32
%257 = icmp eq i32 %256, 2
%258 = zext i1 %257 to i32
%259 = and i32 %252, %258
%260 = icmp ne i32 %259, 0
br i1 %260, label %261, label %263
261: ; preds = %243
%262 = call i32 (...) @m_dec()
br label %263
263: ; preds = %261, %243
%264 = load i32*, i32** %3
%265 = call i32 (i32*, ...) bitcast (i32 (...)* @store to i32 (i32*, ...)*)(i32* %264)
%266 = call i32 (...) @m_inc()
%267 = load i8*, i8** %5
%268 = getelementptr inbounds i8, i8* %267, i64 11
%269 = load i8, i8* %268
%270 = sext i8 %269 to i32
%271 = icmp eq i32 %270, 3
%272 = zext i1 %271 to i32
%273 = load i8*, i8** %5
%274 = getelementptr inbounds i8, i8* %273, i64 12
%275 = load i8, i8* %274
%276 = sext i8 %275 to i32
%277 = icmp eq i32 %276, 2
%278 = zext i1 %277 to i32
%279 = and i32 %272, %278
%280 = icmp ne i32 %279, 0
br i1 %280, label %281, label %283
281: ; preds = %263
%282 = call i32 (...) @m_inc()
br label %283
283: ; preds = %281, %263
store i32 0, i32* %2
br label %286
284: ; preds = %228
%285 = load i32, i32* %4
store i32 %285, i32* %2
br label %286
286: ; preds = %284, %283, %234, %227, %173, %150, %149, %142, %131, %104, %90, %56, %46, %12
%287 = load i32, i32* %2
ret i32 %287
}

LLVM IR (-O2):
@.str = [3 x i8] c"++\00"
@.str.1 = [3 x i8] c"--\00"
@.str.2 = [2 x i8] c"-\00"
@.str.3 = [2 x i8] c"*\00"
@.str.4 = [2 x i8] c"&\00"
@.str.5 = [16 x i8] c"illegal address\00"
define i32 @heir10(i32* %0) {
%2 = tail call i32 (i8*, ...) bitcast (i32 (...)* @match to i32 (i8*, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i32 %2, 0
br i1 %3, label %32, label %4
4: ; preds = %1
%5 = tail call i32 @heir10(i32* %0)
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %4
%8 = tail call i32 (...) @needlval()
br label %171
9: ; preds = %4
%10 = getelementptr inbounds i32, i32* %0, i64 1
%11 = load i32, i32* %10
%12 = icmp eq i32 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %9
%14 = tail call i32 (...) @mnem_push()
br label %15
15: ; preds = %13, %9
%16 = tail call i32 (i32*, ...) bitcast (i32 (...)* @rvalue to i32 (i32*, ...)*)(i32* %0)
%17 = tail call i32 (...) @m_inc()
%18 = load i32, i32* %0
%19 = sext i32 %18 to i64
%20 = inttoptr i64 %19 to i8*
%21 = getelementptr inbounds i8, i8* %20, i64 11
%22 = load i8, i8* %21
%23 = icmp eq i8 %22, 3
%24 = getelementptr inbounds i8, i8* %20, i64 12
%25 = load i8, i8* %24
%26 = icmp eq i8 %25, 2
%27 = and i1 %23, %26
br i1 %27, label %28, label %30
28: ; preds = %15
%29 = tail call i32 (...) @m_inc()
br label %30
30: ; preds = %28, %15
%31 = tail call i32 (i32*, ...) bitcast (i32 (...)* @store to i32 (i32*, ...)*)(i32* %0)
br label %171
32: ; preds = %1
%33 = tail call i32 (i8*, ...) bitcast (i32 (...)* @match to i32 (i8*, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%34 = icmp eq i32 %33, 0
br i1 %34, label %63, label %35
35: ; preds = %32
%36 = tail call i32 @heir10(i32* %0)
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %35
%39 = tail call i32 (...) @needlval()
br label %171
40: ; preds = %35
%41 = getelementptr inbounds i32, i32* %0, i64 1
%42 = load i32, i32* %41
%43 = icmp eq i32 %42, 0
br i1 %43, label %46, label %44
44: ; preds = %40
%45 = tail call i32 (...) @mnem_push()
br label %46
46: ; preds = %44, %40
%47 = tail call i32 (i32*, ...) bitcast (i32 (...)* @rvalue to i32 (i32*, ...)*)(i32* %0)
%48 = tail call i32 (...) @m_dec()
%49 = load i32, i32* %0
%50 = sext i32 %49 to i64
%51 = inttoptr i64 %50 to i8*
%52 = getelementptr inbounds i8, i8* %51, i64 11
%53 = load i8, i8* %52
%54 = icmp eq i8 %53, 3
%55 = getelementptr inbounds i8, i8* %51, i64 12
%56 = load i8, i8* %55
%57 = icmp eq i8 %56, 2
%58 = and i1 %54, %57
br i1 %58, label %59, label %61
59: ; preds = %46
%60 = tail call i32 (...) @m_dec()
br label %61
61: ; preds = %59, %46
%62 = tail call i32 (i32*, ...) bitcast (i32 (...)* @store to i32 (i32*, ...)*)(i32* %0)
br label %171
63: ; preds = %32
%64 = tail call i32 (i8*, ...) bitcast (i32 (...)* @match to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%65 = icmp eq i32 %64, 0
br i1 %65, label %73, label %66
66: ; preds = %63
%67 = tail call i32 @heir10(i32* %0)
%68 = icmp eq i32 %67, 0
br i1 %68, label %71, label %69
69: ; preds = %66
%70 = tail call i32 (i32*, ...) bitcast (i32 (...)* @rvalue to i32 (i32*, ...)*)(i32* %0)
br label %71
71: ; preds = %69, %66
%72 = tail call i32 (...) @m_neg()
br label %171
73: ; preds = %63
%74 = tail call i32 (i8*, ...) bitcast (i32 (...)* @match to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%75 = icmp eq i32 %74, 0
br i1 %75, label %92, label %76
76: ; preds = %73
%77 = tail call i32 @heir10(i32* %0)
%78 = icmp eq i32 %77, 0
br i1 %78, label %81, label %79
79: ; preds = %76
%80 = tail call i32 (i32*, ...) bitcast (i32 (...)* @rvalue to i32 (i32*, ...)*)(i32* %0)
br label %81
81: ; preds = %79, %76
%82 = load i32, i32* %0
%83 = icmp eq i32 %82, 0
br i1 %83, label %91, label %84
84: ; preds = %81
%85 = sext i32 %82 to i64
%86 = inttoptr i64 %85 to i8*
%87 = getelementptr inbounds i8, i8* %86, i64 12
%88 = load i8, i8* %87
%89 = sext i8 %88 to i32
%90 = getelementptr inbounds i32, i32* %0, i64 1
store i32 %89, i32* %90
br label %91
91: ; preds = %84, %81
store i32 0, i32* %0
br label %171
92: ; preds = %73
%93 = tail call i32 (i8*, ...) bitcast (i32 (...)* @match to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%94 = icmp eq i32 %93, 0
br i1 %94, label %114, label %95
95: ; preds = %92
%96 = tail call i32 @heir10(i32* %0)
%97 = icmp eq i32 %96, 0
br i1 %97, label %98, label %100
98: ; preds = %95
%99 = tail call i32 (i8*, ...) bitcast (i32 (...)* @error to i32 (i8*, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
br label %171
100: ; preds = %95
%101 = getelementptr inbounds i32, i32* %0, i64 1
%102 = load i32, i32* %101
%103 = icmp eq i32 %102, 0
br i1 %103, label %104, label %171
104: ; preds = %100
%105 = tail call i32 (...) @immed()
%106 = load i32, i32* %0
%107 = sext i32 %106 to i64
%108 = inttoptr i64 %107 to i8*
%109 = tail call i32 (i8*, ...) bitcast (i32 (...)* @outstr to i32 (i8*, ...)*)(i8* %108)
%110 = tail call i32 (...) @nl()
%111 = getelementptr inbounds i8, i8* %108, i64 12
%112 = load i8, i8* %111
%113 = sext i8 %112 to i32
store i32 %113, i32* %101
br label %171
114: ; preds = %92
%115 = tail call i32 (i32*, ...) bitcast (i32 (...)* @heir11 to i32 (i32*, ...)*)(i32* %0)
%116 = tail call i32 (i8*, ...) bitcast (i32 (...)* @match to i32 (i8*, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%117 = icmp eq i32 %116, 0
br i1 %117, label %153, label %118
118: ; preds = %114
%119 = icmp eq i32 %115, 0
br i1 %119, label %120, label %122
120: ; preds = %118
%121 = tail call i32 (...) @needlval()
br label %171
122: ; preds = %118
%123 = getelementptr inbounds i32, i32* %0, i64 1
%124 = load i32, i32* %123
%125 = icmp eq i32 %124, 0
br i1 %125, label %128, label %126
126: ; preds = %122
%127 = tail call i32 (...) @mnem_push()
br label %128
128: ; preds = %126, %122
%129 = tail call i32 (i32*, ...) bitcast (i32 (...)* @rvalue to i32 (i32*, ...)*)(i32* %0)
%130 = tail call i32 (...) @m_inc()
%131 = load i32, i32* %0
%132 = sext i32 %131 to i64
%133 = inttoptr i64 %132 to i8*
%134 = getelementptr inbounds i8, i8* %133, i64 11
%135 = load i8, i8* %134
%136 = icmp eq i8 %135, 3
%137 = getelementptr inbounds i8, i8* %133, i64 12
%138 = load i8, i8* %137
%139 = icmp eq i8 %138, 2
%140 = and i1 %136, %139
br i1 %140, label %141, label %143
141: ; preds = %128
%142 = tail call i32 (...) @m_inc()
br label %143
143: ; preds = %141, %128
%144 = tail call i32 (i32*, ...) bitcast (i32 (...)* @store to i32 (i32*, ...)*)(i32* %0)
%145 = tail call i32 (...) @m_dec()
%146 = load i8, i8* %134
%147 = icmp eq i8 %146, 3
%148 = load i8, i8* %137
%149 = icmp eq i8 %148, 2
%150 = and i1 %147, %149
br i1 %150, label %151, label %171
151: ; preds = %143
%152 = tail call i32 (...) @m_dec()
br label %171
153: ; preds = %114
%154 = tail call i32 (i8*, ...) bitcast (i32 (...)* @match to i32 (i8*, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%155 = icmp eq i32 %154, 0
br i1 %155, label %171, label %156
156: ; preds = %153
%157 = icmp eq i32 %115, 0
br i1 %157, label %158, label %160
158: ; preds = %156
%159 = tail call i32 (...) @needlval()
br label %171
160: ; preds = %156
%161 = getelementptr inbounds i32, i32* %0, i64 1
%162 = load i32, i32* %161
%163 = icmp eq i32 %162, 0
br i1 %163, label %166, label %164
164: ; preds = %160
%165 = tail call i32 (...) @mnem_push()
br label %166
166: ; preds = %164, %160
%167 = tail call i32 (i32*, ...) bitcast (i32 (...)* @rvalue to i32 (i32*, ...)*)(i32* %0)
%168 = tail call i32 (...) @m_dec()
%169 = tail call i32 (i32*, ...) bitcast (i32 (...)* @store to i32 (i32*, ...)*)(i32* %0)
%170 = tail call i32 (...) @m_inc()
br label %171
171: ; preds = %153, %143, %151, %100, %166, %158, %120, %104, %98, %91, %71, %61, %38, %30, %7
%172 = phi i32 [ 0, %7 ], [ 0, %30 ], [ 0, %38 ], [ 0, %61 ], [ 0, %71 ], [ 1, %91 ], [ 0, %98 ], [ 0, %104 ], [ 0, %120 ], [ 0, %158 ], [ 0, %166 ], [ 0, %100 ], [ 0, %151 ], [ 0, %143 ], [ %115, %153 ]
ret i32 %172
}