#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*/ EXIT_SUCCESS;
long double acos(double);
long double asin(double);
long double atan(double);
long double atan2(double, double);
long double ceil(double);
long double cos(double);
long double cosh(double);
double dapop();
int /*<<< orphan*/ dapush(long double);
int dasize();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
long double exp(double);
long double floor(double);
long double log(double);
long double log10(double);
long double pow(double, double);
int /*<<< orphan*/ printf(char *, ...);
long double sin(double);
long double sinh(double);
long double sqrt(double);
scalar_t__ strcmp(char *, char *);
long double tan(double);
long double tanh(double);
void mathfun(char s[]) {
  double operand;
  if (strcmp(s, "sin") == 0)
    if (dasize() > 0)
      dapush(sin(dapop()));
    else
      printf("Stack is empty\n");
  else if (strcmp(s, "cos") == 0)
    if (dasize() > 0)
      dapush(cos(dapop()));
    else
      printf("Stack is empty\n");
  else if (strcmp(s, "acos") == 0)
    if (dasize() > 0)
      dapush(acos(dapop()));
    else
      printf("Stack is empty\n");
  else if (strcmp(s, "asin") == 0)
    if (dasize() > 0)
      dapush(asin(dapop()));
    else
      printf("Stack is empty\n");
  else if (strcmp(s, "atan2") == 0)
    if (dasize() > 1) {
      operand = dapop();
      dapush(atan2(dapop(), operand));
    } else
      printf("Less than two items are on the stack\n");
  else if (strcmp(s, "atan") == 0)
    if (dasize() > 0)
      dapush(atan(dapop()));
    else
      printf("Stack is empty\n");
  else if (strcmp(s, "ceil") == 0)
    if (dasize() > 0)
      dapush(ceil(dapop()));
    else
      printf("Stack is empty\n");
  else if (strcmp(s, "cosh") == 0)
    if (dasize() > 0)
      dapush(cosh(dapop()));
    else
      printf("Stack is empty\n");
  else if (strcmp(s, "floor") == 0)
    if (dasize() > 0)
      dapush(floor(dapop()));
    else
      printf("Stack is empty\n");
  else if (strcmp(s, "log") == 0)
    if (dasize() > 0)
      dapush(log(dapop()));
    else
      printf("Stack is empty\n");
  else if (strcmp(s, "log10") == 0)
    if (dasize() > 0)
      dapush(log10(dapop()));
    else
      printf("Stack is empty\n");
  else if (strcmp(s, "sinh") == 0)
    if (dasize() > 0)
      dapush(sinh(dapop()));
    else
      printf("Stack is empty\n");
  else if (strcmp(s, "sqrt") == 0)
    if (dasize() > 0)
      dapush(sqrt(dapop()));
    else
      printf("Stack is empty\n");
  else if (strcmp(s, "tan") == 0)
    if (dasize() > 0)
      dapush(tan(dapop()));
    else
      printf("Stack is empty\n");
  else if (strcmp(s, "tanh") == 0)
    if (dasize() > 0)
      dapush(tanh(dapop()));
    else
      printf("Stack is empty\n");
  else if (strcmp(s, "exp") == 0)
    if (dasize() > 0)
      dapush(exp(dapop()));
    else
      printf("Stack is empty\n");
  else if (strcmp(s, "pi") == 0)
    dapush(3.14159265L);
  else if (strcmp(s, "phi") == 0)
    dapush(1.61803399L);
  else if (strcmp(s, "quit") == 0)
    exit(EXIT_SUCCESS);
  else if (strcmp(s, "pow") == 0) {
    if (dasize() > 1) {
      operand = dapop();
      dapush(pow(dapop(), operand));
    } else
      printf("Less than two items are on the stack\n");
  } else
    printf("Error: Unknown function name '%s'\n", s);
}


x86 assembly (clang, -O0):
<mathfun>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xdaf(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    12d4 <mathfun+0x64>
mov    $0x0,%al
call   10a0 <dasize@plt>
cmp    $0x0,%eax
jle    12c1 <mathfun+0x51>
mov    $0x0,%al
call   1190 <dapop@plt>
call   10c0 <sin@plt>
mov    %rsp,%rax
fstpt  (%rax)
call   1170 <dapush@plt>
jmp    12cf <mathfun+0x5f>
lea    0xd58(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    196d <mathfun+0x6fd>
mov    -0x8(%rbp),%rdi
lea    0xd52(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    132c <mathfun+0xbc>
mov    $0x0,%al
call   10a0 <dasize@plt>
cmp    $0x0,%eax
jle    1319 <mathfun+0xa9>
mov    $0x0,%al
call   1190 <dapop@plt>
call   1110 <cos@plt>
mov    %rsp,%rax
fstpt  (%rax)
call   1170 <dapush@plt>
jmp    1327 <mathfun+0xb7>
lea    0xd00(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    1968 <mathfun+0x6f8>
mov    -0x8(%rbp),%rdi
lea    0xcf9(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    1384 <mathfun+0x114>
mov    $0x0,%al
call   10a0 <dasize@plt>
cmp    $0x0,%eax
jle    1371 <mathfun+0x101>
mov    $0x0,%al
call   1190 <dapop@plt>
call   1090 <acos@plt>
mov    %rsp,%rax
fstpt  (%rax)
call   1170 <dapush@plt>
jmp    137f <mathfun+0x10f>
lea    0xca8(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    1963 <mathfun+0x6f3>
mov    -0x8(%rbp),%rdi
lea    0xca6(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    13dc <mathfun+0x16c>
mov    $0x0,%al
call   10a0 <dasize@plt>
cmp    $0x0,%eax
jle    13c9 <mathfun+0x159>
mov    $0x0,%al
call   1190 <dapop@plt>
call   10e0 <asin@plt>
mov    %rsp,%rax
fstpt  (%rax)
call   1170 <dapush@plt>
jmp    13d7 <mathfun+0x167>
lea    0xc50(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    195e <mathfun+0x6ee>
mov    -0x8(%rbp),%rdi
lea    0xc53(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    1445 <mathfun+0x1d5>
mov    $0x0,%al
call   10a0 <dasize@plt>
cmp    $0x1,%eax
jle    1432 <mathfun+0x1c2>
mov    $0x0,%al
call   1190 <dapop@plt>
movsd  %xmm0,-0x10(%rbp)
mov    $0x0,%al
call   1190 <dapop@plt>
movsd  -0x10(%rbp),%xmm1
call   1050 <atan2@plt>
mov    %rsp,%rax
fstpt  (%rax)
call   1170 <dapush@plt>
jmp    1440 <mathfun+0x1d0>
lea    0xc07(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    1959 <mathfun+0x6e9>
mov    -0x8(%rbp),%rdi
lea    0xc16(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    149d <mathfun+0x22d>
mov    $0x0,%al
call   10a0 <dasize@plt>
cmp    $0x0,%eax
jle    148a <mathfun+0x21a>
mov    $0x0,%al
call   1190 <dapop@plt>
call   10d0 <atan@plt>
mov    %rsp,%rax
fstpt  (%rax)
call   1170 <dapush@plt>
jmp    1498 <mathfun+0x228>
lea    0xb8f(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    1954 <mathfun+0x6e4>
mov    -0x8(%rbp),%rdi
lea    0xbc3(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    14f5 <mathfun+0x285>
mov    $0x0,%al
call   10a0 <dasize@plt>
cmp    $0x0,%eax
jle    14e2 <mathfun+0x272>
mov    $0x0,%al
call   1190 <dapop@plt>
call   1040 <ceil@plt>
mov    %rsp,%rax
fstpt  (%rax)
call   1170 <dapush@plt>
jmp    14f0 <mathfun+0x280>
lea    0xb37(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    194f <mathfun+0x6df>
mov    -0x8(%rbp),%rdi
lea    0xb70(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    154d <mathfun+0x2dd>
mov    $0x0,%al
call   10a0 <dasize@plt>
cmp    $0x0,%eax
jle    153a <mathfun+0x2ca>
mov    $0x0,%al
call   1190 <dapop@plt>
call   1070 <cosh@plt>
mov    %rsp,%rax
fstpt  (%rax)
call   1170 <dapush@plt>
jmp    1548 <mathfun+0x2d8>
lea    0xadf(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    194a <mathfun+0x6da>
mov    -0x8(%rbp),%rdi
lea    0xb1d(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    15a5 <mathfun+0x335>
mov    $0x0,%al
call   10a0 <dasize@plt>
cmp    $0x0,%eax
jle    1592 <mathfun+0x322>
mov    $0x0,%al
call   1190 <dapop@plt>
call   1180 <floor@plt>
mov    %rsp,%rax
fstpt  (%rax)
call   1170 <dapush@plt>
jmp    15a0 <mathfun+0x330>
lea    0xa87(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    1945 <mathfun+0x6d5>
mov    -0x8(%rbp),%rdi
lea    0xacb(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    15fd <mathfun+0x38d>
mov    $0x0,%al
call   10a0 <dasize@plt>
cmp    $0x0,%eax
jle    15ea <mathfun+0x37a>
mov    $0x0,%al
call   1190 <dapop@plt>
call   1120 <log@plt>
mov    %rsp,%rax
fstpt  (%rax)
call   1170 <dapush@plt>
jmp    15f8 <mathfun+0x388>
lea    0xa2f(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    1940 <mathfun+0x6d0>
mov    -0x8(%rbp),%rdi
lea    0xa77(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    1655 <mathfun+0x3e5>
mov    $0x0,%al
call   10a0 <dasize@plt>
cmp    $0x0,%eax
jle    1642 <mathfun+0x3d2>
mov    $0x0,%al
call   1190 <dapop@plt>
call   1140 <log10@plt>
mov    %rsp,%rax
fstpt  (%rax)
call   1170 <dapush@plt>
jmp    1650 <mathfun+0x3e0>
lea    0x9d7(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    193b <mathfun+0x6cb>
mov    -0x8(%rbp),%rdi
lea    0xa25(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    16ad <mathfun+0x43d>
mov    $0x0,%al
call   10a0 <dasize@plt>
cmp    $0x0,%eax
jle    169a <mathfun+0x42a>
mov    $0x0,%al
call   1190 <dapop@plt>
call   1030 <sinh@plt>
mov    %rsp,%rax
fstpt  (%rax)
call   1170 <dapush@plt>
jmp    16a8 <mathfun+0x438>
lea    0x97f(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    1936 <mathfun+0x6c6>
mov    -0x8(%rbp),%rdi
lea    0x9d2(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    1705 <mathfun+0x495>
mov    $0x0,%al
call   10a0 <dasize@plt>
cmp    $0x0,%eax
jle    16f2 <mathfun+0x482>
mov    $0x0,%al
call   1190 <dapop@plt>
call   1150 <sqrt@plt>
mov    %rsp,%rax
fstpt  (%rax)
call   1170 <dapush@plt>
jmp    1700 <mathfun+0x490>
lea    0x927(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    1931 <mathfun+0x6c1>
mov    -0x8(%rbp),%rdi
lea    0x957(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    175d <mathfun+0x4ed>
mov    $0x0,%al
call   10a0 <dasize@plt>
cmp    $0x0,%eax
jle    174a <mathfun+0x4da>
mov    $0x0,%al
call   1190 <dapop@plt>
call   1100 <tan@plt>
mov    %rsp,%rax
fstpt  (%rax)
call   1170 <dapush@plt>
jmp    1758 <mathfun+0x4e8>
lea    0x8cf(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    192c <mathfun+0x6bc>
mov    -0x8(%rbp),%rdi
lea    0x927(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    17b5 <mathfun+0x545>
mov    $0x0,%al
call   10a0 <dasize@plt>
cmp    $0x0,%eax
jle    17a2 <mathfun+0x532>
mov    $0x0,%al
call   1190 <dapop@plt>
call   1060 <tanh@plt>
mov    %rsp,%rax
fstpt  (%rax)
call   1170 <dapush@plt>
jmp    17b0 <mathfun+0x540>
lea    0x877(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    1927 <mathfun+0x6b7>
mov    -0x8(%rbp),%rdi
lea    0x8d4(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    180d <mathfun+0x59d>
mov    $0x0,%al
call   10a0 <dasize@plt>
cmp    $0x0,%eax
jle    17fa <mathfun+0x58a>
mov    $0x0,%al
call   1190 <dapop@plt>
call   10f0 <exp@plt>
mov    %rsp,%rax
fstpt  (%rax)
call   1170 <dapush@plt>
jmp    1808 <mathfun+0x598>
lea    0x81f(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    1922 <mathfun+0x6b2>
mov    -0x8(%rbp),%rdi
lea    0x880(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    183c <mathfun+0x5cc>
mov    %rsp,%rax
fldt   0x7e0(%rip)
fstpt  (%rax)
call   1170 <dapush@plt>
jmp    191d <mathfun+0x6ad>
mov    -0x8(%rbp),%rdi
lea    0x854(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    186b <mathfun+0x5fb>
mov    %rsp,%rax
fldt   0x7a1(%rip)
fstpt  (%rax)
call   1170 <dapush@plt>
jmp    1918 <mathfun+0x6a8>
mov    -0x8(%rbp),%rdi
lea    0x829(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    1893 <mathfun+0x623>
mov    0x2754(%rip),%rax
mov    (%rax),%edi
call   1160 <exit@plt>
mov    -0x8(%rbp),%rdi
lea    0x806(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    18fc <mathfun+0x68c>
mov    $0x0,%al
call   10a0 <dasize@plt>
cmp    $0x1,%eax
jle    18e9 <mathfun+0x679>
mov    $0x0,%al
call   1190 <dapop@plt>
movsd  %xmm0,-0x10(%rbp)
mov    $0x0,%al
call   1190 <dapop@plt>
movsd  -0x10(%rbp),%xmm1
call   1130 <pow@plt>
mov    %rsp,%rax
fstpt  (%rax)
call   1170 <dapush@plt>
jmp    18f7 <mathfun+0x687>
lea    0x750(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    190e <mathfun+0x69e>
mov    -0x8(%rbp),%rsi
lea    0x7a1(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    1913 <mathfun+0x6a3>
jmp    1918 <mathfun+0x6a8>
jmp    191d <mathfun+0x6ad>
jmp    1922 <mathfun+0x6b2>
jmp    1927 <mathfun+0x6b7>
jmp    192c <mathfun+0x6bc>
jmp    1931 <mathfun+0x6c1>
jmp    1936 <mathfun+0x6c6>
jmp    193b <mathfun+0x6cb>
jmp    1940 <mathfun+0x6d0>
jmp    1945 <mathfun+0x6d5>
jmp    194a <mathfun+0x6da>
jmp    194f <mathfun+0x6df>
jmp    1954 <mathfun+0x6e4>
jmp    1959 <mathfun+0x6e9>
jmp    195e <mathfun+0x6ee>
jmp    1963 <mathfun+0x6f3>
jmp    1968 <mathfun+0x6f8>
jmp    196d <mathfun+0x6fd>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mathfun>:
push   %rbx
sub    $0x20,%rsp
mov    %rdi,%rbx
lea    0xd97(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     147b <mathfun+0x1fb>
lea    0xd7d(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     149b <mathfun+0x21b>
lea    0xd64(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     14bb <mathfun+0x23b>
lea    0xd51(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     14db <mathfun+0x25b>
lea    0xd3e(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     14fb <mathfun+0x27b>
lea    0xd2c(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     152f <mathfun+0x2af>
lea    0xd19(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     154f <mathfun+0x2cf>
lea    0xd06(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     156f <mathfun+0x2ef>
lea    0xcf3(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     158f <mathfun+0x30f>
lea    0xce1(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     15af <mathfun+0x32f>
lea    0xccd(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     15cf <mathfun+0x34f>
lea    0xcbb(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     15ef <mathfun+0x36f>
lea    0xca8(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     160b <mathfun+0x38b>
lea    0xc6d(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     1627 <mathfun+0x3a7>
lea    0xc7d(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     1640 <mathfun+0x3c0>
lea    0xc6a(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     1659 <mathfun+0x3d9>
lea    0xc56(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     1683 <mathfun+0x403>
lea    0xc41(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     168b <mathfun+0x40b>
lea    0xc2d(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     16d5 <mathfun+0x455>
lea    0xc1a(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     1693 <mathfun+0x413>
lea    0xc06(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
jmp    1090 <printf@plt>
xor    %eax,%eax
call   10b0 <dasize@plt>
test   %eax,%eax
jle    1672 <mathfun+0x3f2>
xor    %eax,%eax
call   11a0 <dapop@plt>
call   10d0 <sin@plt>
jmp    16be <mathfun+0x43e>
xor    %eax,%eax
call   10b0 <dasize@plt>
test   %eax,%eax
jle    1672 <mathfun+0x3f2>
xor    %eax,%eax
call   11a0 <dapop@plt>
call   1120 <cos@plt>
jmp    16be <mathfun+0x43e>
xor    %eax,%eax
call   10b0 <dasize@plt>
test   %eax,%eax
jle    1672 <mathfun+0x3f2>
xor    %eax,%eax
call   11a0 <dapop@plt>
call   10a0 <acos@plt>
jmp    16be <mathfun+0x43e>
xor    %eax,%eax
call   10b0 <dasize@plt>
test   %eax,%eax
jle    1672 <mathfun+0x3f2>
xor    %eax,%eax
call   11a0 <dapop@plt>
call   10f0 <asin@plt>
jmp    16be <mathfun+0x43e>
xor    %eax,%eax
call   10b0 <dasize@plt>
cmp    $0x2,%eax
jl     16cc <mathfun+0x44c>
xor    %eax,%eax
call   11a0 <dapop@plt>
movsd  %xmm0,0x18(%rsp)
xor    %eax,%eax
call   11a0 <dapop@plt>
movsd  0x18(%rsp),%xmm1
call   1060 <atan2@plt>
jmp    16be <mathfun+0x43e>
xor    %eax,%eax
call   10b0 <dasize@plt>
test   %eax,%eax
jle    1672 <mathfun+0x3f2>
xor    %eax,%eax
call   11a0 <dapop@plt>
call   10e0 <atan@plt>
jmp    16be <mathfun+0x43e>
xor    %eax,%eax
call   10b0 <dasize@plt>
test   %eax,%eax
jle    1672 <mathfun+0x3f2>
xor    %eax,%eax
call   11a0 <dapop@plt>
call   1050 <ceil@plt>
jmp    16be <mathfun+0x43e>
xor    %eax,%eax
call   10b0 <dasize@plt>
test   %eax,%eax
jle    1672 <mathfun+0x3f2>
xor    %eax,%eax
call   11a0 <dapop@plt>
call   1080 <cosh@plt>
jmp    16be <mathfun+0x43e>
xor    %eax,%eax
call   10b0 <dasize@plt>
test   %eax,%eax
jle    1672 <mathfun+0x3f2>
xor    %eax,%eax
call   11a0 <dapop@plt>
call   1190 <floor@plt>
jmp    16be <mathfun+0x43e>
xor    %eax,%eax
call   10b0 <dasize@plt>
test   %eax,%eax
jle    1672 <mathfun+0x3f2>
xor    %eax,%eax
call   11a0 <dapop@plt>
call   1130 <log@plt>
jmp    16be <mathfun+0x43e>
xor    %eax,%eax
call   10b0 <dasize@plt>
test   %eax,%eax
jle    1672 <mathfun+0x3f2>
xor    %eax,%eax
call   11a0 <dapop@plt>
call   1150 <log10@plt>
jmp    16be <mathfun+0x43e>
xor    %eax,%eax
call   10b0 <dasize@plt>
test   %eax,%eax
jle    1672 <mathfun+0x3f2>
xor    %eax,%eax
call   11a0 <dapop@plt>
call   1030 <sinh@plt>
jmp    16be <mathfun+0x43e>
xor    %eax,%eax
call   10b0 <dasize@plt>
test   %eax,%eax
jle    1672 <mathfun+0x3f2>
xor    %eax,%eax
call   11a0 <dapop@plt>
call   1160 <sqrt@plt>
jmp    16be <mathfun+0x43e>
xor    %eax,%eax
call   10b0 <dasize@plt>
test   %eax,%eax
jle    1672 <mathfun+0x3f2>
xor    %eax,%eax
call   11a0 <dapop@plt>
call   1110 <tan@plt>
jmp    16be <mathfun+0x43e>
xor    %eax,%eax
call   10b0 <dasize@plt>
test   %eax,%eax
jle    1672 <mathfun+0x3f2>
xor    %eax,%eax
call   11a0 <dapop@plt>
call   1070 <tanh@plt>
jmp    16be <mathfun+0x43e>
xor    %eax,%eax
call   10b0 <dasize@plt>
test   %eax,%eax
jle    1672 <mathfun+0x3f2>
xor    %eax,%eax
call   11a0 <dapop@plt>
call   1100 <exp@plt>
jmp    16be <mathfun+0x43e>
lea    0xa41(%rip),%rdi
add    $0x20,%rsp
pop    %rbx
jmp    1040 <puts@plt>
fldt   0x987(%rip)
jmp    16be <mathfun+0x43e>
fldt   0x96f(%rip)
jmp    16be <mathfun+0x43e>
xor    %eax,%eax
call   10b0 <dasize@plt>
cmp    $0x2,%eax
jl     16cc <mathfun+0x44c>
xor    %eax,%eax
call   11a0 <dapop@plt>
movsd  %xmm0,0x18(%rsp)
xor    %eax,%eax
call   11a0 <dapop@plt>
movsd  0x18(%rsp),%xmm1
call   1140 <pow@plt>
fstpt  (%rsp)
call   1180 <dapush@plt>
add    $0x20,%rsp
pop    %rbx
ret
lea    0x9c2(%rip),%rdi
jmp    1679 <mathfun+0x3f9>
mov    0x2904(%rip),%rax
mov    (%rax),%edi
call   1170 <exit@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"sin\00"
@.str.1 = [16 x i8] c"Stack is empty\0A\00"
@.str.2 = [4 x i8] c"cos\00"
@.str.3 = [5 x i8] c"acos\00"
@.str.4 = [5 x i8] c"asin\00"
@.str.5 = [6 x i8] c"atan2\00"
@.str.6 = [38 x i8] c"Less than two items are on the stack\0A\00"
@.str.7 = [5 x i8] c"atan\00"
@.str.8 = [5 x i8] c"ceil\00"
@.str.9 = [5 x i8] c"cosh\00"
@.str.10 = [6 x i8] c"floor\00"
@.str.11 = [4 x i8] c"log\00"
@.str.12 = [6 x i8] c"log10\00"
@.str.13 = [5 x i8] c"sinh\00"
@.str.14 = [5 x i8] c"sqrt\00"
@.str.15 = [4 x i8] c"tan\00"
@.str.16 = [5 x i8] c"tanh\00"
@.str.17 = [4 x i8] c"exp\00"
@.str.18 = [3 x i8] c"pi\00"
@.str.19 = [4 x i8] c"phi\00"
@.str.20 = [5 x i8] c"quit\00"
@EXIT_SUCCESS = global i32 0
@.str.21 = [4 x i8] c"pow\00"
@.str.22 = [35 x i8] c"Error: Unknown function name '%s'\0A\00"
define void @mathfun(i8* %0) {
%2 = alloca i8*
%3 = alloca double
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %17
7: ; preds = %1
%8 = call i32 (...) @dasize()
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %7
%11 = call double (...) @dapop()
%12 = call x86_fp80 @sin(double %11)
%13 = call i32 @dapush(x86_fp80 %12)
br label %16
14: ; preds = %7
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %16
16: ; preds = %14, %10
br label %286
17: ; preds = %1
%18 = load i8*, i8** %2
%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 %31
21: ; preds = %17
%22 = call i32 (...) @dasize()
%23 = icmp sgt i32 %22, 0
br i1 %23, label %24, label %28
24: ; preds = %21
%25 = call double (...) @dapop()
%26 = call x86_fp80 @cos(double %25)
%27 = call i32 @dapush(x86_fp80 %26)
br label %30
28: ; preds = %21
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %30
30: ; preds = %28, %24
br label %285
31: ; preds = %17
%32 = load i8*, i8** %2
%33 = call i64 @strcmp(i8* %32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %45
35: ; preds = %31
%36 = call i32 (...) @dasize()
%37 = icmp sgt i32 %36, 0
br i1 %37, label %38, label %42
38: ; preds = %35
%39 = call double (...) @dapop()
%40 = call x86_fp80 @acos(double %39)
%41 = call i32 @dapush(x86_fp80 %40)
br label %44
42: ; preds = %35
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %44
44: ; preds = %42, %38
br label %284
45: ; preds = %31
%46 = load i8*, i8** %2
%47 = call i64 @strcmp(i8* %46, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %59
49: ; preds = %45
%50 = call i32 (...) @dasize()
%51 = icmp sgt i32 %50, 0
br i1 %51, label %52, label %56
52: ; preds = %49
%53 = call double (...) @dapop()
%54 = call x86_fp80 @asin(double %53)
%55 = call i32 @dapush(x86_fp80 %54)
br label %58
56: ; preds = %49
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %58
58: ; preds = %56, %52
br label %283
59: ; preds = %45
%60 = load i8*, i8** %2
%61 = call i64 @strcmp(i8* %60, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %75
63: ; preds = %59
%64 = call i32 (...) @dasize()
%65 = icmp sgt i32 %64, 1
br i1 %65, label %66, label %72
66: ; preds = %63
%67 = call double (...) @dapop()
store double %67, double* %3
%68 = call double (...) @dapop()
%69 = load double, double* %3
%70 = call x86_fp80 @atan2(double %68, double %69)
%71 = call i32 @dapush(x86_fp80 %70)
br label %74
72: ; preds = %63
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0))
br label %74
74: ; preds = %72, %66
br label %282
75: ; preds = %59
%76 = load i8*, i8** %2
%77 = call i64 @strcmp(i8* %76, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%78 = icmp eq i64 %77, 0
br i1 %78, label %79, label %89
79: ; preds = %75
%80 = call i32 (...) @dasize()
%81 = icmp sgt i32 %80, 0
br i1 %81, label %82, label %86
82: ; preds = %79
%83 = call double (...) @dapop()
%84 = call x86_fp80 @atan(double %83)
%85 = call i32 @dapush(x86_fp80 %84)
br label %88
86: ; preds = %79
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %88
88: ; preds = %86, %82
br label %281
89: ; preds = %75
%90 = load i8*, i8** %2
%91 = call i64 @strcmp(i8* %90, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%92 = icmp eq i64 %91, 0
br i1 %92, label %93, label %103
93: ; preds = %89
%94 = call i32 (...) @dasize()
%95 = icmp sgt i32 %94, 0
br i1 %95, label %96, label %100
96: ; preds = %93
%97 = call double (...) @dapop()
%98 = call x86_fp80 @ceil(double %97)
%99 = call i32 @dapush(x86_fp80 %98)
br label %102
100: ; preds = %93
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %102
102: ; preds = %100, %96
br label %280
103: ; preds = %89
%104 = load i8*, i8** %2
%105 = call i64 @strcmp(i8* %104, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%106 = icmp eq i64 %105, 0
br i1 %106, label %107, label %117
107: ; preds = %103
%108 = call i32 (...) @dasize()
%109 = icmp sgt i32 %108, 0
br i1 %109, label %110, label %114
110: ; preds = %107
%111 = call double (...) @dapop()
%112 = call x86_fp80 @cosh(double %111)
%113 = call i32 @dapush(x86_fp80 %112)
br label %116
114: ; preds = %107
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %116
116: ; preds = %114, %110
br label %279
117: ; preds = %103
%118 = load i8*, i8** %2
%119 = call i64 @strcmp(i8* %118, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%120 = icmp eq i64 %119, 0
br i1 %120, label %121, label %131
121: ; preds = %117
%122 = call i32 (...) @dasize()
%123 = icmp sgt i32 %122, 0
br i1 %123, label %124, label %128
124: ; preds = %121
%125 = call double (...) @dapop()
%126 = call x86_fp80 @floor(double %125)
%127 = call i32 @dapush(x86_fp80 %126)
br label %130
128: ; preds = %121
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %130
130: ; preds = %128, %124
br label %278
131: ; preds = %117
%132 = load i8*, i8** %2
%133 = call i64 @strcmp(i8* %132, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%134 = icmp eq i64 %133, 0
br i1 %134, label %135, label %145
135: ; preds = %131
%136 = call i32 (...) @dasize()
%137 = icmp sgt i32 %136, 0
br i1 %137, label %138, label %142
138: ; preds = %135
%139 = call double (...) @dapop()
%140 = call x86_fp80 @log(double %139)
%141 = call i32 @dapush(x86_fp80 %140)
br label %144
142: ; preds = %135
%143 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %144
144: ; preds = %142, %138
br label %277
145: ; preds = %131
%146 = load i8*, i8** %2
%147 = call i64 @strcmp(i8* %146, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%148 = icmp eq i64 %147, 0
br i1 %148, label %149, label %159
149: ; preds = %145
%150 = call i32 (...) @dasize()
%151 = icmp sgt i32 %150, 0
br i1 %151, label %152, label %156
152: ; preds = %149
%153 = call double (...) @dapop()
%154 = call x86_fp80 @log10(double %153)
%155 = call i32 @dapush(x86_fp80 %154)
br label %158
156: ; preds = %149
%157 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %158
158: ; preds = %156, %152
br label %276
159: ; preds = %145
%160 = load i8*, i8** %2
%161 = call i64 @strcmp(i8* %160, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%162 = icmp eq i64 %161, 0
br i1 %162, label %163, label %173
163: ; preds = %159
%164 = call i32 (...) @dasize()
%165 = icmp sgt i32 %164, 0
br i1 %165, label %166, label %170
166: ; preds = %163
%167 = call double (...) @dapop()
%168 = call x86_fp80 @sinh(double %167)
%169 = call i32 @dapush(x86_fp80 %168)
br label %172
170: ; preds = %163
%171 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %172
172: ; preds = %170, %166
br label %275
173: ; preds = %159
%174 = load i8*, i8** %2
%175 = call i64 @strcmp(i8* %174, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
%176 = icmp eq i64 %175, 0
br i1 %176, label %177, label %187
177: ; preds = %173
%178 = call i32 (...) @dasize()
%179 = icmp sgt i32 %178, 0
br i1 %179, label %180, label %184
180: ; preds = %177
%181 = call double (...) @dapop()
%182 = call x86_fp80 @sqrt(double %181)
%183 = call i32 @dapush(x86_fp80 %182)
br label %186
184: ; preds = %177
%185 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %186
186: ; preds = %184, %180
br label %274
187: ; preds = %173
%188 = load i8*, i8** %2
%189 = call i64 @strcmp(i8* %188, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0))
%190 = icmp eq i64 %189, 0
br i1 %190, label %191, label %201
191: ; preds = %187
%192 = call i32 (...) @dasize()
%193 = icmp sgt i32 %192, 0
br i1 %193, label %194, label %198
194: ; preds = %191
%195 = call double (...) @dapop()
%196 = call x86_fp80 @tan(double %195)
%197 = call i32 @dapush(x86_fp80 %196)
br label %200
198: ; preds = %191
%199 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %200
200: ; preds = %198, %194
br label %273
201: ; preds = %187
%202 = load i8*, i8** %2
%203 = call i64 @strcmp(i8* %202, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0))
%204 = icmp eq i64 %203, 0
br i1 %204, label %205, label %215
205: ; preds = %201
%206 = call i32 (...) @dasize()
%207 = icmp sgt i32 %206, 0
br i1 %207, label %208, label %212
208: ; preds = %205
%209 = call double (...) @dapop()
%210 = call x86_fp80 @tanh(double %209)
%211 = call i32 @dapush(x86_fp80 %210)
br label %214
212: ; preds = %205
%213 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %214
214: ; preds = %212, %208
br label %272
215: ; preds = %201
%216 = load i8*, i8** %2
%217 = call i64 @strcmp(i8* %216, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0))
%218 = icmp eq i64 %217, 0
br i1 %218, label %219, label %229
219: ; preds = %215
%220 = call i32 (...) @dasize()
%221 = icmp sgt i32 %220, 0
br i1 %221, label %222, label %226
222: ; preds = %219
%223 = call double (...) @dapop()
%224 = call x86_fp80 @exp(double %223)
%225 = call i32 @dapush(x86_fp80 %224)
br label %228
226: ; preds = %219
%227 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %228
228: ; preds = %226, %222
br label %271
229: ; preds = %215
%230 = load i8*, i8** %2
%231 = call i64 @strcmp(i8* %230, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0))
%232 = icmp eq i64 %231, 0
br i1 %232, label %233, label %235
233: ; preds = %229
%234 = call i32 @dapush(x86_fp80 0xK4000C90FDA9E46A7843E)
br label %270
235: ; preds = %229
%236 = load i8*, i8** %2
%237 = call i64 @strcmp(i8* %236, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0))
%238 = icmp eq i64 %237, 0
br i1 %238, label %239, label %241
239: ; preds = %235
%240 = call i32 @dapush(x86_fp80 0xK3FFFCF1BBCDF6EE5E6CF)
br label %269
241: ; preds = %235
%242 = load i8*, i8** %2
%243 = call i64 @strcmp(i8* %242, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0))
%244 = icmp eq i64 %243, 0
br i1 %244, label %245, label %248
245: ; preds = %241
%246 = load i32, i32* @EXIT_SUCCESS
%247 = call i32 @exit(i32 %246)
unreachable
248: ; preds = %241
%249 = load i8*, i8** %2
%250 = call i64 @strcmp(i8* %249, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0))
%251 = icmp eq i64 %250, 0
br i1 %251, label %252, label %264
252: ; preds = %248
%253 = call i32 (...) @dasize()
%254 = icmp sgt i32 %253, 1
br i1 %254, label %255, label %261
255: ; preds = %252
%256 = call double (...) @dapop()
store double %256, double* %3
%257 = call double (...) @dapop()
%258 = load double, double* %3
%259 = call x86_fp80 @pow(double %257, double %258)
%260 = call i32 @dapush(x86_fp80 %259)
br label %263
261: ; preds = %252
%262 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0))
br label %263
263: ; preds = %261, %255
br label %267
264: ; preds = %248
%265 = load i8*, i8** %2
%266 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.22, i64 0, i64 0), i8* %265)
br label %267
267: ; preds = %264, %263
br label %268
268: ; preds = %267
br label %269
269: ; preds = %268, %239
br label %270
270: ; preds = %269, %233
br label %271
271: ; preds = %270, %228
br label %272
272: ; preds = %271, %214
br label %273
273: ; preds = %272, %200
br label %274
274: ; preds = %273, %186
br label %275
275: ; preds = %274, %172
br label %276
276: ; preds = %275, %158
br label %277
277: ; preds = %276, %144
br label %278
278: ; preds = %277, %130
br label %279
279: ; preds = %278, %116
br label %280
280: ; preds = %279, %102
br label %281
281: ; preds = %280, %88
br label %282
282: ; preds = %281, %74
br label %283
283: ; preds = %282, %58
br label %284
284: ; preds = %283, %44
br label %285
285: ; preds = %284, %30
br label %286
286: ; preds = %285, %16
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"sin\00"
@.str.2 = [4 x i8] c"cos\00"
@.str.3 = [5 x i8] c"acos\00"
@.str.4 = [5 x i8] c"asin\00"
@.str.5 = [6 x i8] c"atan2\00"
@.str.7 = [5 x i8] c"atan\00"
@.str.8 = [5 x i8] c"ceil\00"
@.str.9 = [5 x i8] c"cosh\00"
@.str.10 = [6 x i8] c"floor\00"
@.str.11 = [4 x i8] c"log\00"
@.str.12 = [6 x i8] c"log10\00"
@.str.13 = [5 x i8] c"sinh\00"
@.str.14 = [5 x i8] c"sqrt\00"
@.str.15 = [4 x i8] c"tan\00"
@.str.16 = [5 x i8] c"tanh\00"
@.str.17 = [4 x i8] c"exp\00"
@.str.18 = [3 x i8] c"pi\00"
@.str.19 = [4 x i8] c"phi\00"
@.str.20 = [5 x i8] c"quit\00"
@EXIT_SUCCESS = global i32 0
@.str.21 = [4 x i8] c"pow\00"
@.str.22 = [35 x i8] c"Error: Unknown function name '%s'\0A\00"
@str.34 = [37 x i8] c"Less than two items are on the stack\00"
@str.38 = [15 x i8] c"Stack is empty\00"
define void @mathfun(i8* %0) {
%2 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %13
4: ; preds = %1
%5 = tail call i32 (...) @dasize()
%6 = icmp sgt i32 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %4
%8 = tail call double (...) @dapop()
%9 = tail call x86_fp80 @sin(double %8)
%10 = tail call i32 @dapush(x86_fp80 %9)
br label %225
11: ; preds = %4
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.38, i64 0, i64 0))
br label %225
13: ; preds = %1
%14 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %25
16: ; preds = %13
%17 = tail call i32 (...) @dasize()
%18 = icmp sgt i32 %17, 0
br i1 %18, label %19, label %23
19: ; preds = %16
%20 = tail call double (...) @dapop()
%21 = tail call x86_fp80 @cos(double %20)
%22 = tail call i32 @dapush(x86_fp80 %21)
br label %225
23: ; preds = %16
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.38, i64 0, i64 0))
br label %225
25: ; preds = %13
%26 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %37
28: ; preds = %25
%29 = tail call i32 (...) @dasize()
%30 = icmp sgt i32 %29, 0
br i1 %30, label %31, label %35
31: ; preds = %28
%32 = tail call double (...) @dapop()
%33 = tail call x86_fp80 @acos(double %32)
%34 = tail call i32 @dapush(x86_fp80 %33)
br label %225
35: ; preds = %28
%36 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.38, i64 0, i64 0))
br label %225
37: ; preds = %25
%38 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %49
40: ; preds = %37
%41 = tail call i32 (...) @dasize()
%42 = icmp sgt i32 %41, 0
br i1 %42, label %43, label %47
43: ; preds = %40
%44 = tail call double (...) @dapop()
%45 = tail call x86_fp80 @asin(double %44)
%46 = tail call i32 @dapush(x86_fp80 %45)
br label %225
47: ; preds = %40
%48 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.38, i64 0, i64 0))
br label %225
49: ; preds = %37
%50 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %62
52: ; preds = %49
%53 = tail call i32 (...) @dasize()
%54 = icmp sgt i32 %53, 1
br i1 %54, label %55, label %60
55: ; preds = %52
%56 = tail call double (...) @dapop()
%57 = tail call double (...) @dapop()
%58 = tail call x86_fp80 @atan2(double %57, double %56)
%59 = tail call i32 @dapush(x86_fp80 %58)
br label %225
60: ; preds = %52
%61 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.34, i64 0, i64 0))
br label %225
62: ; preds = %49
%63 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %74
65: ; preds = %62
%66 = tail call i32 (...) @dasize()
%67 = icmp sgt i32 %66, 0
br i1 %67, label %68, label %72
68: ; preds = %65
%69 = tail call double (...) @dapop()
%70 = tail call x86_fp80 @atan(double %69)
%71 = tail call i32 @dapush(x86_fp80 %70)
br label %225
72: ; preds = %65
%73 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.38, i64 0, i64 0))
br label %225
74: ; preds = %62
%75 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%76 = icmp eq i64 %75, 0
br i1 %76, label %77, label %86
77: ; preds = %74
%78 = tail call i32 (...) @dasize()
%79 = icmp sgt i32 %78, 0
br i1 %79, label %80, label %84
80: ; preds = %77
%81 = tail call double (...) @dapop()
%82 = tail call x86_fp80 @ceil(double %81)
%83 = tail call i32 @dapush(x86_fp80 %82)
br label %225
84: ; preds = %77
%85 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.38, i64 0, i64 0))
br label %225
86: ; preds = %74
%87 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%88 = icmp eq i64 %87, 0
br i1 %88, label %89, label %98
89: ; preds = %86
%90 = tail call i32 (...) @dasize()
%91 = icmp sgt i32 %90, 0
br i1 %91, label %92, label %96
92: ; preds = %89
%93 = tail call double (...) @dapop()
%94 = tail call x86_fp80 @cosh(double %93)
%95 = tail call i32 @dapush(x86_fp80 %94)
br label %225
96: ; preds = %89
%97 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.38, i64 0, i64 0))
br label %225
98: ; preds = %86
%99 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%100 = icmp eq i64 %99, 0
br i1 %100, label %101, label %110
101: ; preds = %98
%102 = tail call i32 (...) @dasize()
%103 = icmp sgt i32 %102, 0
br i1 %103, label %104, label %108
104: ; preds = %101
%105 = tail call double (...) @dapop()
%106 = tail call x86_fp80 @floor(double %105)
%107 = tail call i32 @dapush(x86_fp80 %106)
br label %225
108: ; preds = %101
%109 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.38, i64 0, i64 0))
br label %225
110: ; preds = %98
%111 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%112 = icmp eq i64 %111, 0
br i1 %112, label %113, label %122
113: ; preds = %110
%114 = tail call i32 (...) @dasize()
%115 = icmp sgt i32 %114, 0
br i1 %115, label %116, label %120
116: ; preds = %113
%117 = tail call double (...) @dapop()
%118 = tail call x86_fp80 @log(double %117)
%119 = tail call i32 @dapush(x86_fp80 %118)
br label %225
120: ; preds = %113
%121 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.38, i64 0, i64 0))
br label %225
122: ; preds = %110
%123 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%124 = icmp eq i64 %123, 0
br i1 %124, label %125, label %134
125: ; preds = %122
%126 = tail call i32 (...) @dasize()
%127 = icmp sgt i32 %126, 0
br i1 %127, label %128, label %132
128: ; preds = %125
%129 = tail call double (...) @dapop()
%130 = tail call x86_fp80 @log10(double %129)
%131 = tail call i32 @dapush(x86_fp80 %130)
br label %225
132: ; preds = %125
%133 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.38, i64 0, i64 0))
br label %225
134: ; preds = %122
%135 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%136 = icmp eq i64 %135, 0
br i1 %136, label %137, label %146
137: ; preds = %134
%138 = tail call i32 (...) @dasize()
%139 = icmp sgt i32 %138, 0
br i1 %139, label %140, label %144
140: ; preds = %137
%141 = tail call double (...) @dapop()
%142 = tail call x86_fp80 @sinh(double %141)
%143 = tail call i32 @dapush(x86_fp80 %142)
br label %225
144: ; preds = %137
%145 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.38, i64 0, i64 0))
br label %225
146: ; preds = %134
%147 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
%148 = icmp eq i64 %147, 0
br i1 %148, label %149, label %158
149: ; preds = %146
%150 = tail call i32 (...) @dasize()
%151 = icmp sgt i32 %150, 0
br i1 %151, label %152, label %156
152: ; preds = %149
%153 = tail call double (...) @dapop()
%154 = tail call x86_fp80 @sqrt(double %153)
%155 = tail call i32 @dapush(x86_fp80 %154)
br label %225
156: ; preds = %149
%157 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.38, i64 0, i64 0))
br label %225
158: ; preds = %146
%159 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0))
%160 = icmp eq i64 %159, 0
br i1 %160, label %161, label %170
161: ; preds = %158
%162 = tail call i32 (...) @dasize()
%163 = icmp sgt i32 %162, 0
br i1 %163, label %164, label %168
164: ; preds = %161
%165 = tail call double (...) @dapop()
%166 = tail call x86_fp80 @tan(double %165)
%167 = tail call i32 @dapush(x86_fp80 %166)
br label %225
168: ; preds = %161
%169 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.38, i64 0, i64 0))
br label %225
170: ; preds = %158
%171 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0))
%172 = icmp eq i64 %171, 0
br i1 %172, label %173, label %182
173: ; preds = %170
%174 = tail call i32 (...) @dasize()
%175 = icmp sgt i32 %174, 0
br i1 %175, label %176, label %180
176: ; preds = %173
%177 = tail call double (...) @dapop()
%178 = tail call x86_fp80 @tanh(double %177)
%179 = tail call i32 @dapush(x86_fp80 %178)
br label %225
180: ; preds = %173
%181 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.38, i64 0, i64 0))
br label %225
182: ; preds = %170
%183 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0))
%184 = icmp eq i64 %183, 0
br i1 %184, label %185, label %194
185: ; preds = %182
%186 = tail call i32 (...) @dasize()
%187 = icmp sgt i32 %186, 0
br i1 %187, label %188, label %192
188: ; preds = %185
%189 = tail call double (...) @dapop()
%190 = tail call x86_fp80 @exp(double %189)
%191 = tail call i32 @dapush(x86_fp80 %190)
br label %225
192: ; preds = %185
%193 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.38, i64 0, i64 0))
br label %225
194: ; preds = %182
%195 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0))
%196 = icmp eq i64 %195, 0
br i1 %196, label %197, label %199
197: ; preds = %194
%198 = tail call i32 @dapush(x86_fp80 0xK4000C90FDA9E46A7843E)
br label %225
199: ; preds = %194
%200 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0))
%201 = icmp eq i64 %200, 0
br i1 %201, label %202, label %204
202: ; preds = %199
%203 = tail call i32 @dapush(x86_fp80 0xK3FFFCF1BBCDF6EE5E6CF)
br label %225
204: ; preds = %199
%205 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0))
%206 = icmp eq i64 %205, 0
br i1 %206, label %207, label %210
207: ; preds = %204
%208 = load i32, i32* @EXIT_SUCCESS
%209 = tail call i32 @exit(i32 %208)
unreachable
210: ; preds = %204
%211 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0))
%212 = icmp eq i64 %211, 0
br i1 %212, label %213, label %223
213: ; preds = %210
%214 = tail call i32 (...) @dasize()
%215 = icmp sgt i32 %214, 1
br i1 %215, label %216, label %221
216: ; preds = %213
%217 = tail call double (...) @dapop()
%218 = tail call double (...) @dapop()
%219 = tail call x86_fp80 @pow(double %218, double %217)
%220 = tail call i32 @dapush(x86_fp80 %219)
br label %225
221: ; preds = %213
%222 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.34, i64 0, i64 0))
br label %225
223: ; preds = %210
%224 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.22, i64 0, i64 0), i8* %0)
br label %225
225: ; preds = %23, %19, %47, %43, %72, %68, %96, %92, %120, %116, %144, %140, %168, %164, %192, %188, %202, %223, %221, %216, %197, %176, %180, %152, %156, %128, %132, %104, %108, %80, %84, %55, %60, %31, %35, %7, %11
ret void
}