#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 char *token;
struct store_struct {
  int dummy;
};

/* Variables and functions */
int atoi(char *);
int /*<<< orphan*/ memmove(char *, char *, int);
char *strchr(char *, char);
int strlen(char *);
int strspn(char *, char *);
int evalterm(struct store_struct *store, char *term) {
  int termval = 0;
  char token[2048] = "\000", *delim = NULL;
  char *strpspn();
  int getstore();
  int isnumeric();
  static int evaltermdepth = 0;
  int novalue = (-89123456);
  if (++evaltermdepth > 99)
    goto end_of_job;
  if (store == NULL || ((term) == NULL ? 1 : (*(term) == '\000' ? 1 : 0)))
    goto end_of_job;
  if ((term) != NULL)
    term += strspn(term, " \t\n\r\f\v");
  delim = strpspn(term, "?", token);
  if (*delim != '\000') {
    int ncolons = 0;
    if (*token != '\000')
      if ((termval = evalterm(store, token)) == novalue)
        goto end_of_job;
    while (*delim != '\000') {
      delim++;
      *token = '\000';
      if (*delim == '\000')
        break;
      delim = strpspn(delim, ":", token);
      if (ncolons++ >= termval)
        break;
    }
    if (*token != '\000')
      termval = evalterm(store, token);
    goto end_of_job;
  }
  term = strpspn(term, "/+-*%", token);
  if (*term != '\000') {
    int leftval = 0, rightval = 0;
    if (*token != '\000')
      if ((leftval = evalterm(store, token)) == novalue)
        goto end_of_job;
    if ((rightval = evalterm(store, term + 1)) == novalue)
      goto end_of_job;
    switch (*term) {
    default:
      break;
    case '+':
      termval = leftval + rightval;
      break;
    case '-':
      termval = leftval - rightval;
      break;
    case '*':
      termval = leftval * rightval;
      break;
    case '/':
      if (rightval != 0)
        termval = leftval / rightval;
      break;
    case '%':
      if (rightval != 0)
        termval = leftval % rightval;
      break;
    }
    goto end_of_job;
  }
  if ((delim = strchr(token, '(')) != NULL) {
    int toklen = strlen(token);
    if (token[toklen - 1] == ')')
      token[--toklen] = '\000';
    if (*token == '(') {
      if ((1) != 0) {
        if (!(((token)) == NULL ? 1 : (*((token)) == '\000' ? 1 : 0))) {
          int thislen3 = strlen(token);
          if ((1) >= thislen3)
            *(token) = '\000';
          else
            memmove((token), (token) + (1), 1 + thislen3 - (1));
        }
      } else
        ;
      if ((token) != NULL) {
        int thislen = strlen(token);
        while (--thislen >= 0)
          if ((((token)[thislen]) != '\000' &&
               !((" \t\n\r\f\v") == NULL
                     ? 1
                     : (*(" \t\n\r\f\v") == '\000' ? 1 : 0)) &&
               strchr((" \t\n\r\f\v"), ((token)[thislen])) != (char *)NULL))
            (token)[thislen] = '\000';
          else
            break;
        if ((thislen = strspn((token), " \t\n\r\f\v")) > 0) {
          if ((thislen) != 0) {
            if (!((((token))) == NULL ? 1 : (*(((token))) == '\000' ? 1 : 0))) {
              int thislen3 = strlen((token));
              if ((thislen) >= thislen3)
                *((token)) = '\000';
              else
                memmove(((token)), ((token)) + (thislen),
                        1 + thislen3 - (thislen));
            }
          } else
            ;
        }
      } else
        ;
      termval = evalterm(store, token);
    } else {
      *delim = '\000';
    }
    goto end_of_job;
  }
  if (*token != '\000') {
    if (isnumeric(token))
      termval = atoi(token);
    else {
      termval = getstore(store, token);
    }
  }
end_of_job:
  if (evaltermdepth > 0)
    evaltermdepth--;
  return (termval);
}


x86 assembly (clang, -O0):
<evalterm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x850,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
lea    -0x820(%rbp),%rdi
xor    %esi,%esi
mov    $0x800,%edx
call   1060 <memset@plt>
movq   $0x0,-0x828(%rbp)
movl   $0xfab01580,-0x82c(%rbp)
15 b0 fa
mov    0x2e8c(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2e83(%rip)
cmp    $0x63,%eax
jle    11ff <evalterm+0x5f>
jmp    1824 <evalterm+0x684>
cmpq   $0x0,-0x8(%rbp)
je     1252 <evalterm+0xb2>
cmpq   $0x0,-0x10(%rbp)
jne    1224 <evalterm+0x84>
mov    $0x1,%al
test   $0x1,%al
jne    1252 <evalterm+0xb2>
jmp    1257 <evalterm+0xb7>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    1243 <evalterm+0xa3>
mov    $0x1,%al
test   $0x1,%al
jne    1252 <evalterm+0xb2>
jmp    1257 <evalterm+0xb7>
xor    %eax,%eax
test   $0x1,%al
jne    1252 <evalterm+0xb2>
jmp    1257 <evalterm+0xb7>
jmp    1824 <evalterm+0x684>
cmpq   $0x0,-0x10(%rbp)
je     1282 <evalterm+0xe2>
mov    -0x10(%rbp),%rdi
lea    0xdbf(%rip),%rsi
call   1070 <strspn@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x820(%rbp),%rdx
lea    0xd9f(%rip),%rsi
mov    $0x0,%al
call   10b0 <strpspn@plt>
mov    %rax,-0x828(%rbp)
mov    -0x828(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     13b0 <evalterm+0x210>
movl   $0x0,-0x830(%rbp)
movsbl -0x820(%rbp),%eax
cmp    $0x0,%eax
je     12f8 <evalterm+0x158>
mov    -0x8(%rbp),%rdi
lea    -0x820(%rbp),%rsi
call   1040 <evalterm@plt>
mov    %eax,-0x14(%rbp)
cmp    -0x82c(%rbp),%eax
jne    12f3 <evalterm+0x153>
jmp    1824 <evalterm+0x684>
jmp    12f8 <evalterm+0x158>
jmp    12fd <evalterm+0x15d>
mov    -0x828(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1388 <evalterm+0x1e8>
mov    -0x828(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x828(%rbp)
movb   $0x0,-0x820(%rbp)
mov    -0x828(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    1341 <evalterm+0x1a1>
jmp    1388 <evalterm+0x1e8>
mov    -0x828(%rbp),%rdi
lea    -0x820(%rbp),%rdx
lea    0xcdf(%rip),%rsi
mov    $0x0,%al
call   10b0 <strpspn@plt>
mov    %rax,-0x828(%rbp)
mov    -0x830(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x830(%rbp)
cmp    -0x14(%rbp),%eax
jl     1383 <evalterm+0x1e3>
jmp    1388 <evalterm+0x1e8>
jmp    12fd <evalterm+0x15d>
movsbl -0x820(%rbp),%eax
cmp    $0x0,%eax
je     13ab <evalterm+0x20b>
mov    -0x8(%rbp),%rdi
lea    -0x820(%rbp),%rsi
call   1040 <evalterm@plt>
mov    %eax,-0x14(%rbp)
jmp    1824 <evalterm+0x684>
mov    -0x10(%rbp),%rdi
lea    -0x820(%rbp),%rdx
lea    0xc75(%rip),%rsi
mov    $0x0,%al
call   10b0 <strpspn@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1513 <evalterm+0x373>
movl   $0x0,-0x834(%rbp)
movl   $0x0,-0x838(%rbp)
movsbl -0x820(%rbp),%eax
cmp    $0x0,%eax
je     142d <evalterm+0x28d>
mov    -0x8(%rbp),%rdi
lea    -0x820(%rbp),%rsi
call   1040 <evalterm@plt>
mov    %eax,-0x834(%rbp)
cmp    -0x82c(%rbp),%eax
jne    1428 <evalterm+0x288>
jmp    1824 <evalterm+0x684>
jmp    142d <evalterm+0x28d>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
add    $0x1,%rsi
call   1040 <evalterm@plt>
mov    %eax,-0x838(%rbp)
cmp    -0x82c(%rbp),%eax
jne    1455 <evalterm+0x2b5>
jmp    1824 <evalterm+0x684>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
add    $0xffffffdb,%eax
mov    %eax,%ecx
mov    %rcx,-0x850(%rbp)
sub    $0xa,%eax
ja     1488 <evalterm+0x2e8>
mov    -0x850(%rbp),%rax
lea    0xb81(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
jmp    150e <evalterm+0x36e>
mov    -0x834(%rbp),%eax
add    -0x838(%rbp),%eax
mov    %eax,-0x14(%rbp)
jmp    150e <evalterm+0x36e>
mov    -0x834(%rbp),%eax
sub    -0x838(%rbp),%eax
mov    %eax,-0x14(%rbp)
jmp    150e <evalterm+0x36e>
mov    -0x834(%rbp),%eax
imul   -0x838(%rbp),%eax
mov    %eax,-0x14(%rbp)
jmp    150e <evalterm+0x36e>
cmpl   $0x0,-0x838(%rbp)
je     14e7 <evalterm+0x347>
mov    -0x834(%rbp),%eax
cltd
idivl  -0x838(%rbp)
mov    %eax,-0x14(%rbp)
jmp    150e <evalterm+0x36e>
cmpl   $0x0,-0x838(%rbp)
je     1509 <evalterm+0x369>
mov    -0x834(%rbp),%eax
cltd
idivl  -0x838(%rbp)
mov    %edx,-0x14(%rbp)
jmp    150e <evalterm+0x36e>
jmp    1824 <evalterm+0x684>
lea    -0x820(%rbp),%rdi
mov    $0x28,%esi
call   1050 <strchr@plt>
mov    %rax,-0x828(%rbp)
cmp    $0x0,%rax
je     17ca <evalterm+0x62a>
lea    -0x820(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x83c(%rbp)
mov    -0x83c(%rbp),%eax
sub    $0x1,%eax
cltq
movsbl -0x820(%rbp,%rax,1),%eax
ff
cmp    $0x29,%eax
jne    157c <evalterm+0x3dc>
mov    -0x83c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x83c(%rbp)
cltq
movb   $0x0,-0x820(%rbp,%rax,1)
movsbl -0x820(%rbp),%eax
cmp    $0x28,%eax
jne    17bb <evalterm+0x61b>
lea    -0x820(%rbp),%rax
cmp    $0x0,%rax
jne    15ac <evalterm+0x40c>
mov    $0x1,%al
test   $0x1,%al
jne    1631 <evalterm+0x491>
jmp    15da <evalterm+0x43a>
movsbl -0x820(%rbp),%eax
cmp    $0x0,%eax
jne    15cb <evalterm+0x42b>
mov    $0x1,%al
test   $0x1,%al
jne    1631 <evalterm+0x491>
jmp    15da <evalterm+0x43a>
xor    %eax,%eax
test   $0x1,%al
jne    1631 <evalterm+0x491>
jmp    15da <evalterm+0x43a>
lea    -0x820(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x840(%rbp)
mov    $0x1,%eax
cmp    -0x840(%rbp),%eax
jl     1609 <evalterm+0x469>
movb   $0x0,-0x820(%rbp)
jmp    162c <evalterm+0x48c>
lea    -0x820(%rbp),%rdi
lea    -0x820(%rbp),%rsi
add    $0x1,%rsi
mov    -0x840(%rbp),%edx
add    $0x1,%edx
sub    $0x1,%edx
call   1090 <memmove@plt>
jmp    1631 <evalterm+0x491>
lea    -0x820(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x844(%rbp)
mov    -0x844(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x844(%rbp)
cmp    $0x0,%eax
jl     16b6 <evalterm+0x516>
movslq -0x844(%rbp),%rax
movsbl -0x820(%rbp,%rax,1),%eax
ff
cmp    $0x0,%eax
je     16ac <evalterm+0x50c>
movslq -0x844(%rbp),%rax
lea    0x9ab(%rip),%rdi
movsbl -0x820(%rbp,%rax,1),%esi
ff
call   1050 <strchr@plt>
cmp    $0x0,%rax
je     16ac <evalterm+0x50c>
movslq -0x844(%rbp),%rax
movb   $0x0,-0x820(%rbp,%rax,1)
jmp    16b1 <evalterm+0x511>
jmp    16b6 <evalterm+0x516>
jmp    1643 <evalterm+0x4a3>
lea    -0x820(%rbp),%rdi
lea    0x968(%rip),%rsi
call   1070 <strspn@plt>
mov    %eax,-0x844(%rbp)
cmp    $0x0,%eax
jle    17a3 <evalterm+0x603>
cmpl   $0x0,-0x844(%rbp)
je     1799 <evalterm+0x5f9>
lea    -0x820(%rbp),%rax
cmp    $0x0,%rax
jne    1705 <evalterm+0x565>
mov    $0x1,%al
test   $0x1,%al
jne    1794 <evalterm+0x5f4>
jmp    1733 <evalterm+0x593>
movsbl -0x820(%rbp),%eax
cmp    $0x0,%eax
jne    1724 <evalterm+0x584>
mov    $0x1,%al
test   $0x1,%al
jne    1794 <evalterm+0x5f4>
jmp    1733 <evalterm+0x593>
xor    %eax,%eax
test   $0x1,%al
jne    1794 <evalterm+0x5f4>
jmp    1733 <evalterm+0x593>
lea    -0x820(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x848(%rbp)
mov    -0x844(%rbp),%eax
cmp    -0x848(%rbp),%eax
jl     1763 <evalterm+0x5c3>
movb   $0x0,-0x820(%rbp)
jmp    178f <evalterm+0x5ef>
lea    -0x820(%rbp),%rdi
lea    -0x820(%rbp),%rsi
movslq -0x844(%rbp),%rax
add    %rax,%rsi
mov    -0x848(%rbp),%edx
add    $0x1,%edx
sub    -0x844(%rbp),%edx
call   1090 <memmove@plt>
jmp    1794 <evalterm+0x5f4>
jmp    179e <evalterm+0x5fe>
jmp    179e <evalterm+0x5fe>
jmp    17a3 <evalterm+0x603>
mov    -0x8(%rbp),%rdi
lea    -0x820(%rbp),%rsi
call   1040 <evalterm@plt>
mov    %eax,-0x14(%rbp)
jmp    17c5 <evalterm+0x625>
mov    -0x828(%rbp),%rax
movb   $0x0,(%rax)
jmp    1824 <evalterm+0x684>
movsbl -0x820(%rbp),%eax
cmp    $0x0,%eax
je     181f <evalterm+0x67f>
lea    -0x820(%rbp),%rdi
mov    $0x0,%al
call   10a0 <isnumeric@plt>
cmp    $0x0,%eax
je     1805 <evalterm+0x665>
lea    -0x820(%rbp),%rdi
call   10c0 <atoi@plt>
mov    %eax,-0x14(%rbp)
jmp    181a <evalterm+0x67a>
mov    -0x8(%rbp),%rdi
lea    -0x820(%rbp),%rsi
mov    $0x0,%al
call   1080 <getstore@plt>
mov    %eax,-0x14(%rbp)
jmp    181f <evalterm+0x67f>
jmp    1824 <evalterm+0x684>
cmpl   $0x0,0x2849(%rip)
jle    1840 <evalterm+0x6a0>
mov    0x283d(%rip),%eax
add    $0xffffffff,%eax
mov    %eax,0x2834(%rip)
mov    -0x14(%rbp),%eax
add    $0x850,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<evalterm>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x808,%rsp
mov    %rsi,%rbx
mov    %rdi,%r15
mov    %rsp,%rdi
xor    %r13d,%r13d
mov    $0x800,%edx
xor    %esi,%esi
call   1060 <memset@plt>
mov    0x2ea5(%rip),%eax
lea    0x1(%rax),%ecx
mov    %ecx,0x2e9c(%rip)
test   %rbx,%rbx
je     14a4 <evalterm+0x304>
test   %r15,%r15
je     14a4 <evalterm+0x304>
cmp    $0x62,%eax
jg     14a4 <evalterm+0x304>
cmpb   $0x0,(%rbx)
je     14a4 <evalterm+0x304>
lea    0xe29(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strspn@plt>
movslq %eax,%rbp
add    %rbx,%rbp
lea    0xe1b(%rip),%rsi
xor    %r14d,%r14d
mov    %rsp,%rdx
mov    %rbp,%rdi
xor    %eax,%eax
call   10b0 <strpspn@plt>
cmpb   $0x0,(%rax)
je     12cc <evalterm+0x12c>
mov    %rax,%rbx
cmpb   $0x0,(%rsp)
je     1259 <evalterm+0xb9>
mov    %rsp,%rsi
mov    %r15,%rdi
call   1040 <evalterm@plt>
mov    %eax,%r14d
mov    $0xfab01580,%r13d
cmp    $0xfab01580,%eax
je     14a4 <evalterm+0x304>
mov    %r14d,%r13d
test   %r14d,%r14d
mov    $0x0,%ebp
cmovg  %r14d,%ebp
add    $0x1,%ebp
lea    0xdc3(%rip),%r14
mov    %rsp,%r12
cs nopw 0x0(%rax,%rax,1)
nop
cmpb   $0x0,(%rbx)
je     12af <evalterm+0x10f>
movb   $0x0,(%rsp)
cmpb   $0x0,0x1(%rbx)
je     14a4 <evalterm+0x304>
add    $0x1,%rbx
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   10b0 <strpspn@plt>
mov    %rax,%rbx
add    $0xffffffff,%ebp
jne    1280 <evalterm+0xe0>
cmpb   $0x0,(%rsp)
je     14a4 <evalterm+0x304>
mov    %rsp,%rsi
mov    %r15,%rdi
call   1040 <evalterm@plt>
mov    %eax,%r13d
jmp    14a4 <evalterm+0x304>
lea    0xd64(%rip),%rsi
xor    %r14d,%r14d
mov    %rsp,%rdx
mov    %rbp,%rdi
xor    %eax,%eax
call   10b0 <strpspn@plt>
cmpb   $0x0,(%rax)
je     135e <evalterm+0x1be>
mov    %rax,%rbx
cmpb   $0x0,(%rsp)
je     130d <evalterm+0x16d>
mov    %rsp,%rsi
mov    %r15,%rdi
call   1040 <evalterm@plt>
mov    %eax,%r14d
xor    %r13d,%r13d
cmp    $0xfab01580,%eax
je     14a4 <evalterm+0x304>
lea    0x1(%rbx),%rsi
mov    %r15,%rdi
call   1040 <evalterm@plt>
xor    %r13d,%r13d
cmp    $0xfab01580,%eax
je     14a4 <evalterm+0x304>
mov    %eax,%ecx
movsbl (%rbx),%eax
add    $0xffffffdb,%eax
cmp    $0xa,%eax
ja     14a4 <evalterm+0x304>
lea    0xcc1(%rip),%rdx
movslq (%rdx,%rax,4),%rax
add    %rdx,%rax
jmp    *%rax
test   %ecx,%ecx
je     14a4 <evalterm+0x304>
mov    %r14d,%eax
cltd
idiv   %ecx
mov    %edx,%r13d
jmp    14a4 <evalterm+0x304>
mov    %rsp,%rbp
mov    %rbp,%rdi
mov    $0x28,%esi
call   1050 <strchr@plt>
test   %rax,%rax
je     13a5 <evalterm+0x205>
mov    %rax,%rbx
mov    %rbp,%rdi
call   1030 <strlen@plt>
cltq
cmpb   $0x29,-0x1(%rax,%rbp,1)
jne    138c <evalterm+0x1ec>
movb   $0x0,-0x1(%rsp,%rax,1)
cmpb   $0x28,(%rsp)
jne    13ce <evalterm+0x22e>
mov    %rsp,%rdi
call   1030 <strlen@plt>
cmp    $0x1,%eax
jg     13d9 <evalterm+0x239>
movb   $0x0,(%rsp)
jmp    13e8 <evalterm+0x248>
cmpb   $0x0,(%rsp)
je     1477 <evalterm+0x2d7>
mov    %rsp,%rdi
xor    %eax,%eax
call   10a0 <isnumeric@plt>
test   %eax,%eax
je     14cc <evalterm+0x32c>
mov    %rsp,%rdi
call   10c0 <atoi@plt>
jmp    12c4 <evalterm+0x124>
movb   $0x0,(%rbx)
xor    %r13d,%r13d
jmp    14a4 <evalterm+0x304>
lea    0x1(%rsp),%rsi
mov    %rsp,%rdi
mov    %eax,%edx
call   1090 <memmove@plt>
mov    %rsp,%rdi
call   1030 <strlen@plt>
test   %eax,%eax
jle    142a <evalterm+0x28a>
mov    %eax,%ebp
add    $0x1,%rbp
lea    0xc2b(%rip),%r14
lea    -0x2(%rbp),%ebx
movzbl (%rsp,%rbx,1),%eax
test   %al,%al
je     142a <evalterm+0x28a>
movsbl %al,%esi
mov    %r14,%rdi
call   1050 <strchr@plt>
test   %rax,%rax
je     142a <evalterm+0x28a>
movb   $0x0,(%rsp,%rbx,1)
add    $0xffffffffffffffff,%rbp
cmp    $0x1,%rbp
ja     1401 <evalterm+0x261>
lea    0xbfb(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strspn@plt>
test   %eax,%eax
jle    12b9 <evalterm+0x119>
cmpb   $0x0,(%rsp)
je     12b9 <evalterm+0x119>
mov    %eax,%ebx
mov    %rsp,%rdi
call   1030 <strlen@plt>
cmp    %eax,%ebx
jge    14de <evalterm+0x33e>
mov    %ebx,%ecx
lea    (%rsp,%rcx,1),%rsi
sub    %ebx,%eax
add    $0x1,%eax
mov    %rsp,%rdi
mov    %eax,%edx
call   1090 <memmove@plt>
jmp    12b9 <evalterm+0x119>
xor    %r13d,%r13d
jmp    14a4 <evalterm+0x304>
imul   %r14d,%ecx
mov    %ecx,%r13d
jmp    14a4 <evalterm+0x304>
add    %r14d,%ecx
mov    %ecx,%r13d
jmp    14a4 <evalterm+0x304>
sub    %ecx,%r14d
mov    %r14d,%r13d
jmp    14a4 <evalterm+0x304>
test   %ecx,%ecx
je     14a4 <evalterm+0x304>
mov    %r14d,%eax
cltd
idiv   %ecx
jmp    12c4 <evalterm+0x124>
mov    0x2bca(%rip),%eax
test   %eax,%eax
jle    14b7 <evalterm+0x317>
add    $0xffffffff,%eax
mov    %eax,0x2bbd(%rip)
mov    %r13d,%eax
add    $0x808,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %rsp,%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1080 <getstore@plt>
jmp    12c4 <evalterm+0x124>
movb   $0x0,(%rsp)
jmp    12b9 <evalterm+0x119>

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

LLVM IR (-O2):
%struct.store_struct = type { i32 }
@evalterm.evaltermdepth = internal unnamed_addr global i32 0
@.str = [7 x i8] c" \09\0A\0D\0C\0B\00"
@.str.1 = [2 x i8] c"?\00"
@.str.2 = [2 x i8] c":\00"
@.str.3 = [6 x i8] c"/+-*%\00"
define i32 @evalterm(%struct.store_struct* %0, i8* %1) {
%3 = alloca [2048 x i8]
%4 = getelementptr inbounds [2048 x i8], [2048 x i8]* %3, i64 0, i64 0
%5 = load i32, i32* @evalterm.evaltermdepth
%6 = add nsw i32 %5, 1
store i32 %6, i32* @evalterm.evaltermdepth
%7 = icmp sgt i32 %5, 98
%8 = icmp eq %struct.store_struct* %0, null
%9 = or i1 %8, %7
%10 = icmp eq i8* %1, null
%11 = or i1 %10, %9
br i1 %11, label %148, label %12
12: ; preds = %2
%13 = load i8, i8* %1
%14 = icmp eq i8 %13, 0
br i1 %14, label %148, label %15
15: ; preds = %12
%16 = tail call i32 @strspn(i8* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, i8* %1, i64 %17
%19 = call i8* (i8*, i8*, i8*, ...) bitcast (i8* (...)* @strpspn to i8* (i8*, i8*, i8*, ...)*)(i8* %18, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%20 = load i8, i8* %19
%21 = icmp eq i8 %20, 0
br i1 %21, label %49, label %22
22: ; preds = %15
%23 = load i8, i8* %4
%24 = icmp eq i8 %23, 0
br i1 %24, label %28, label %25
25: ; preds = %22
%26 = call i32 @evalterm(%struct.store_struct* %0, i8* %4)
%27 = icmp eq i32 %26, -89123456
br i1 %27, label %148, label %28
28: ; preds = %25, %22
%29 = phi i32 [ %26, %25 ], [ 0, %22 ]
%30 = call i32 @llvm.smax.i32(i32 %29, i32 0)
br label %31
31: ; preds = %40, %28
%32 = phi i8* [ %19, %28 ], [ %41, %40 ]
%33 = phi i32 [ 0, %28 ], [ %42, %40 ]
%34 = load i8, i8* %32
%35 = icmp eq i8 %34, 0
br i1 %35, label %44, label %36
36: ; preds = %31
%37 = getelementptr inbounds i8, i8* %32, i64 1
store i8 0, i8* %4
%38 = load i8, i8* %37
%39 = icmp eq i8 %38, 0
br i1 %39, label %148, label %40
40: ; preds = %36
%41 = call i8* (i8*, i8*, i8*, ...) bitcast (i8* (...)* @strpspn to i8* (i8*, i8*, i8*, ...)*)(i8* %37, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* %4)
%42 = add nuw i32 %33, 1
%43 = icmp eq i32 %33, %30
br i1 %43, label %44, label %31
44: ; preds = %40, %31
%45 = load i8, i8* %4
%46 = icmp eq i8 %45, 0
br i1 %46, label %148, label %47
47: ; preds = %44
%48 = call i32 @evalterm(%struct.store_struct* %0, i8* %4)
br label %148
49: ; preds = %15
%50 = call i8* (i8*, i8*, i8*, ...) bitcast (i8* (...)* @strpspn to i8* (i8*, i8*, i8*, ...)*)(i8* %18, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %4)
%51 = load i8, i8* %50
%52 = icmp eq i8 %51, 0
br i1 %52, label %81, label %53
53: ; preds = %49
%54 = load i8, i8* %4
%55 = icmp eq i8 %54, 0
br i1 %55, label %59, label %56
56: ; preds = %53
%57 = call i32 @evalterm(%struct.store_struct* %0, i8* %4)
%58 = icmp eq i32 %57, -89123456
br i1 %58, label %148, label %59
59: ; preds = %56, %53
%60 = phi i32 [ %57, %56 ], [ 0, %53 ]
%61 = getelementptr inbounds i8, i8* %50, i64 1
%62 = call i32 @evalterm(%struct.store_struct* %0, i8* %61)
%63 = icmp eq i32 %62, -89123456
br i1 %63, label %148, label %64
64: ; preds = %59
%65 = load i8, i8* %50
%66 = sext i8 %65 to i32
switch i32 %66, label %148 [
i32 43, label %67
i32 45, label %69
i32 42, label %71
i32 47, label %73
i32 37, label %77
]
67: ; preds = %64
%68 = add nsw i32 %62, %60
br label %148
69: ; preds = %64
%70 = sub nsw i32 %60, %62
br label %148
71: ; preds = %64
%72 = mul nsw i32 %62, %60
br label %148
73: ; preds = %64
%74 = icmp eq i32 %62, 0
br i1 %74, label %148, label %75
75: ; preds = %73
%76 = sdiv i32 %60, %62
br label %148
77: ; preds = %64
%78 = icmp eq i32 %62, 0
br i1 %78, label %148, label %79
79: ; preds = %77
%80 = srem i32 %60, %62
br label %148
81: ; preds = %49
%82 = call i8* @strchr(i8* %4, i8 signext 40)
%83 = icmp eq i8* %82, null
br i1 %83, label %138, label %84
84: ; preds = %81
%85 = call i32 @strlen(i8* %4)
%86 = add nsw i32 %85, -1
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [2048 x i8], [2048 x i8]* %3, i64 0, i64 %87
%89 = load i8, i8* %88
%90 = icmp eq i8 %89, 41
br i1 %90, label %91, label %92
91: ; preds = %84
store i8 0, i8* %88
br label %92
92: ; preds = %91, %84
%93 = load i8, i8* %4
%94 = icmp eq i8 %93, 40
br i1 %94, label %95, label %137
95: ; preds = %92
%96 = call i32 @strlen(i8* %4)
%97 = icmp slt i32 %96, 2
br i1 %97, label %98, label %99
98: ; preds = %95
store i8 0, i8* %4
br label %102
99: ; preds = %95
%100 = getelementptr inbounds [2048 x i8], [2048 x i8]* %3, i64 0, i64 1
%101 = call i32 @memmove(i8* %4, i8* %100, i32 %96)
br label %102
102: ; preds = %98, %99
%103 = call i32 @strlen(i8* %4)
%104 = icmp sgt i32 %103, 0
br i1 %104, label %105, label %119
105: ; preds = %102
%106 = zext i32 %103 to i64
br label %107
107: ; preds = %105, %117
%108 = phi i64 [ %106, %105 ], [ %109, %117 ]
%109 = add nsw i64 %108, -1
%110 = and i64 %109, 4294967295
%111 = getelementptr inbounds [2048 x i8], [2048 x i8]* %3, i64 0, i64 %110
%112 = load i8, i8* %111
%113 = icmp eq i8 %112, 0
br i1 %113, label %119, label %114
114: ; preds = %107
%115 = call i8* @strchr(i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8 signext %112)
%116 = icmp eq i8* %115, null
br i1 %116, label %119, label %117
117: ; preds = %114
store i8 0, i8* %111
%118 = icmp ugt i64 %108, 1
br i1 %118, label %107, label %119
119: ; preds = %117, %114, %107, %102
%120 = call i32 @strspn(i8* %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%121 = icmp slt i32 %120, 1
%122 = load i8, i8* %4
%123 = icmp eq i8 %122, 0
%124 = select i1 %121, i1 true, i1 %123
br i1 %124, label %135, label %125
125: ; preds = %119
%126 = call i32 @strlen(i8* %4)
%127 = icmp slt i32 %120, %126
br i1 %127, label %129, label %128
128: ; preds = %125
store i8 0, i8* %4
br label %135
129: ; preds = %125
%130 = zext i32 %120 to i64
%131 = getelementptr inbounds [2048 x i8], [2048 x i8]* %3, i64 0, i64 %130
%132 = sub nsw i32 1, %120
%133 = add i32 %132, %126
%134 = call i32 @memmove(i8* %4, i8* %131, i32 %133)
br label %135
135: ; preds = %128, %129, %119
%136 = call i32 @evalterm(%struct.store_struct* %0, i8* %4)
br label %148
137: ; preds = %92
store i8 0, i8* %82
br label %148
138: ; preds = %81
%139 = load i8, i8* %4
%140 = icmp eq i8 %139, 0
br i1 %140, label %148, label %141
141: ; preds = %138
%142 = call i32 (i8*, ...) bitcast (i32 (...)* @isnumeric to i32 (i8*, ...)*)(i8* %4)
%143 = icmp eq i32 %142, 0
br i1 %143, label %146, label %144
144: ; preds = %141
%145 = call i32 @atoi(i8* %4)
br label %148
146: ; preds = %141
%147 = call i32 (%struct.store_struct*, i8*, ...) bitcast (i32 (...)* @getstore to i32 (%struct.store_struct*, i8*, ...)*)(%struct.store_struct* %0, i8* %4)
br label %148
148: ; preds = %36, %135, %137, %56, %59, %77, %79, %73, %75, %64, %71, %69, %67, %25, %47, %44, %138, %146, %144, %12, %2
%149 = phi i32 [ 0, %2 ], [ 0, %12 ], [ %145, %144 ], [ %147, %146 ], [ 0, %138 ], [ -89123456, %25 ], [ %48, %47 ], [ %29, %44 ], [ 0, %56 ], [ 0, %59 ], [ 0, %64 ], [ %80, %79 ], [ 0, %77 ], [ %76, %75 ], [ 0, %73 ], [ %72, %71 ], [ %70, %69 ], [ %68, %67 ], [ %136, %135 ], [ 0, %137 ], [ %29, %36 ]
%150 = load i32, i32* @evalterm.evaltermdepth
%151 = icmp sgt i32 %150, 0
br i1 %151, label %152, label %154
152: ; preds = %148
%153 = add nsw i32 %150, -1
store i32 %153, i32* @evalterm.evaltermdepth
br label %154
154: ; preds = %148, %152
ret i32 %149
}