#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 EOF;
int atof(char *);
int exp(double);
int getop(char *, char *);
double pop();
int pow(double, double);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ push(int);
int sin(double);
int main(void) {
  int type, ans_flag;
  double op1, op2, ans;
  char s[100], nl[1];
  while ((type = getop(s, nl)) != EOF && nl[0] != EOF) {
    switch (type) {
    case '0':
      push(atof(s));
      break;
    case '+':
      push(pop() + pop());
      break;
    case '*':
      push(pop() * pop());
      break;
    case '-':
      op2 = pop();
      push(pop() - op2);
      break;
    case '/':
      op2 = pop();
      if (op2 != 0.0)
        push(pop() / op2);
      else
        printf("error: zero divisor\n");
      break;
    case '%':
      op2 = pop();
      if ((int)op2 != 0)
        push((int)pop() % (int)op2);
      else
        printf("error: zero divisor\n");
      break;
    case 0x100:
      push(sin(pop()));
      break;
    case 0x101:
      push(exp(pop()));
      break;
    case 0x102:
      op2 = pop();
      op1 = pop();
      if (op1 == 0 && op2 <= 0)
        printf("exponent should be positive.\n");
      else if (op1 < 0)
        push(pow(op1, (int)op2));
      else
        push(pow(op1, op2));
      break;
    case 0x103:
      printf("the last answer: %f\n", ans);
      break;
    case 0x104:
      printf("error: unknown command %s\n", s);
      break;
    default:
      break;
    }
    if (nl[0] == '\n') {
      ans = pop();
      printf("the current answer: %f\n", ans);
      nl[0] = 0;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x90(%rbp),%rdi
lea    -0x91(%rbp),%rsi
call   1070 <getop@plt>
mov    %eax,%ecx
mov    %ecx,-0x8(%rbp)
xor    %eax,%eax
mov    0x2e35(%rip),%rdx
cmp    (%rdx),%ecx
mov    %al,-0x92(%rbp)
je     11da <main+0x5a>
movsbl -0x91(%rbp),%eax
mov    0x2e19(%rip),%rcx
cmp    (%rcx),%eax
setne  %al
mov    %al,-0x92(%rbp)
mov    -0x92(%rbp),%al
test   $0x1,%al
jne    11ed <main+0x6d>
jmp    155c <main+0x3dc>
mov    -0x8(%rbp),%eax
mov    %eax,-0x98(%rbp)
sub    $0x25,%eax
je     13d0 <main+0x250>
jmp    1204 <main+0x84>
mov    -0x98(%rbp),%eax
sub    $0x2a,%eax
je     1321 <main+0x1a1>
jmp    1218 <main+0x98>
mov    -0x98(%rbp),%eax
sub    $0x2b,%eax
je     12ee <main+0x16e>
jmp    122c <main+0xac>
mov    -0x98(%rbp),%eax
sub    $0x2d,%eax
je     1354 <main+0x1d4>
jmp    1240 <main+0xc0>
mov    -0x98(%rbp),%eax
sub    $0x2f,%eax
je     137a <main+0x1fa>
jmp    1254 <main+0xd4>
mov    -0x98(%rbp),%eax
sub    $0x30,%eax
je     12d6 <main+0x156>
jmp    1268 <main+0xe8>
mov    -0x98(%rbp),%eax
sub    $0x100,%eax
je     141c <main+0x29c>
jmp    127e <main+0xfe>
mov    -0x98(%rbp),%eax
sub    $0x101,%eax
je     1434 <main+0x2b4>
jmp    1294 <main+0x114>
mov    -0x98(%rbp),%eax
sub    $0x102,%eax
je     144c <main+0x2cc>
jmp    12aa <main+0x12a>
mov    -0x98(%rbp),%eax
sub    $0x103,%eax
je     14ea <main+0x36a>
jmp    12c0 <main+0x140>
mov    -0x98(%rbp),%eax
sub    $0x104,%eax
je     1502 <main+0x382>
jmp    151c <main+0x39c>
lea    -0x90(%rbp),%rdi
call   1030 <atof@plt>
mov    %eax,%edi
call   1090 <push@plt>
jmp    1521 <main+0x3a1>
mov    $0x0,%al
call   1050 <pop@plt>
movsd  %xmm0,-0xa0(%rbp)
ff
mov    $0x0,%al
call   1050 <pop@plt>
movaps %xmm0,%xmm1
movsd  -0xa0(%rbp),%xmm0
ff
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1090 <push@plt>
jmp    1521 <main+0x3a1>
mov    $0x0,%al
call   1050 <pop@plt>
movsd  %xmm0,-0xa8(%rbp)
ff
mov    $0x0,%al
call   1050 <pop@plt>
movaps %xmm0,%xmm1
movsd  -0xa8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1090 <push@plt>
jmp    1521 <main+0x3a1>
mov    $0x0,%al
call   1050 <pop@plt>
movsd  %xmm0,-0x20(%rbp)
mov    $0x0,%al
call   1050 <pop@plt>
subsd  -0x20(%rbp),%xmm0
cvttsd2si %xmm0,%edi
call   1090 <push@plt>
jmp    1521 <main+0x3a1>
mov    $0x0,%al
call   1050 <pop@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    13a3 <main+0x223>
jp     13a3 <main+0x223>
jmp    13bd <main+0x23d>
mov    $0x0,%al
call   1050 <pop@plt>
divsd  -0x20(%rbp),%xmm0
cvttsd2si %xmm0,%edi
call   1090 <push@plt>
jmp    13cb <main+0x24b>
lea    0xc3c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1521 <main+0x3a1>
mov    $0x0,%al
call   1050 <pop@plt>
movsd  %xmm0,-0x20(%rbp)
cvttsd2si -0x20(%rbp),%eax
cmp    $0x0,%eax
je     1409 <main+0x289>
mov    $0x0,%al
call   1050 <pop@plt>
cvttsd2si %xmm0,%eax
cvttsd2si -0x20(%rbp),%ecx
cltd
idiv   %ecx
mov    %edx,%edi
call   1090 <push@plt>
jmp    1417 <main+0x297>
lea    0xbf0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1521 <main+0x3a1>
mov    $0x0,%al
call   1050 <pop@plt>
call   1060 <sin@plt>
mov    %eax,%edi
call   1090 <push@plt>
jmp    1521 <main+0x3a1>
mov    $0x0,%al
call   1050 <pop@plt>
call   1080 <exp@plt>
mov    %eax,%edi
call   1090 <push@plt>
jmp    1521 <main+0x3a1>
mov    $0x0,%al
call   1050 <pop@plt>
movsd  %xmm0,-0x20(%rbp)
mov    $0x0,%al
call   1050 <pop@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    149d <main+0x31d>
jp     149d <main+0x31d>
xorps  %xmm0,%xmm0
ucomisd -0x20(%rbp),%xmm0
jb     149d <main+0x31d>
lea    0xb84(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    14e5 <main+0x365>
xorps  %xmm0,%xmm0
ucomisd -0x18(%rbp),%xmm0
jbe    14ca <main+0x34a>
movsd  -0x18(%rbp),%xmm0
cvttsd2si -0x20(%rbp),%eax
cvtsi2sd %eax,%xmm1
call   10a0 <pow@plt>
mov    %eax,%edi
call   1090 <push@plt>
jmp    14e0 <main+0x360>
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
call   10a0 <pow@plt>
mov    %eax,%edi
call   1090 <push@plt>
jmp    14e5 <main+0x365>
jmp    1521 <main+0x3a1>
movsd  -0x28(%rbp),%xmm0
lea    0xb3d(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    1521 <main+0x3a1>
lea    -0x90(%rbp),%rsi
lea    0xb38(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1521 <main+0x3a1>
jmp    1521 <main+0x3a1>
movsbl -0x91(%rbp),%eax
cmp    $0xa,%eax
jne    1557 <main+0x3d7>
mov    $0x0,%al
call   1050 <pop@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
lea    0xb1a(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movb   $0x0,-0x91(%rbp)
jmp    1192 <main+0x12>
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
lea    0x30(%rsp),%rdi
lea    0xf(%rsp),%rsi
call   1080 <getop@plt>
mov    0x2e31(%rip),%r12
mov    (%r12),%edx
cmp    %edx,%eax
je     1419 <main+0x289>
mov    0xf(%rsp),%cl
movsbl %cl,%esi
cmp    %esi,%edx
je     1419 <main+0x289>
lea    0xe57(%rip),%rbx
lea    0x30(%rsp),%rbp
lea    0xe8f(%rip),%r13
lea    0xf(%rsp),%r14
lea    0xe0f(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    -0x25(%rax),%edx
cmp    $0xb,%edx
ja     1250 <main+0xc0>
movslq (%r15,%rdx,4),%rax
add    %r15,%rax
jmp    *%rax
mov    %r13,%rbp
xor    %eax,%eax
call   1060 <pop@plt>
cvttsd2si %xmm0,%r13d
test   %r13d,%r13d
je     13a9 <main+0x219>
xor    %eax,%eax
call   1060 <pop@plt>
cvttsd2si %xmm0,%eax
cltd
idiv   %r13d
mov    %edx,%edi
call   10a0 <push@plt>
jmp    13b5 <main+0x225>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0xffffff00,%eax
cmp    $0x4,%eax
ja     13d5 <main+0x245>
movslq (%rbx,%rax,4),%rax
add    %rbx,%rax
jmp    *%rax
xor    %eax,%eax
call   1060 <pop@plt>
call   1070 <sin@plt>
jmp    13a0 <main+0x210>
xor    %eax,%eax
call   1060 <pop@plt>
movsd  %xmm0,0x10(%rsp)
xor    %eax,%eax
call   1060 <pop@plt>
mulsd  0x10(%rsp),%xmm0
jmp    1300 <main+0x170>
xor    %eax,%eax
call   1060 <pop@plt>
movsd  %xmm0,0x10(%rsp)
xor    %eax,%eax
call   1060 <pop@plt>
addsd  0x10(%rsp),%xmm0
jmp    1300 <main+0x170>
xor    %eax,%eax
call   1060 <pop@plt>
movsd  %xmm0,0x10(%rsp)
xor    %eax,%eax
call   1060 <pop@plt>
subsd  0x10(%rsp),%xmm0
jmp    1300 <main+0x170>
xor    %eax,%eax
call   1060 <pop@plt>
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    12e3 <main+0x153>
jnp    13bf <main+0x22f>
xor    %eax,%eax
movsd  %xmm0,0x10(%rsp)
call   1060 <pop@plt>
divsd  0x10(%rsp),%xmm0
cs nopw 0x0(%rax,%rax,1)
cvttsd2si %xmm0,%edi
call   10a0 <push@plt>
jmp    13d0 <main+0x240>
mov    %rbp,%rdi
call   1040 <atof@plt>
jmp    13a0 <main+0x210>
lea    0xd37(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    13d0 <main+0x240>
xor    %eax,%eax
call   1060 <pop@plt>
call   1090 <exp@plt>
jmp    13a0 <main+0x210>
xor    %eax,%eax
call   1060 <pop@plt>
movapd %xmm0,0x10(%rsp)
xor    %eax,%eax
call   1060 <pop@plt>
movapd 0x10(%rsp),%xmm1
xorpd  %xmm2,%xmm2
ucomisd %xmm2,%xmm0
jne    138a <main+0x1fa>
jp     138a <main+0x1fa>
ucomisd %xmm1,%xmm2
jb     138a <main+0x1fa>
lea    0xd1a(%rip),%rdi
jmp    13c6 <main+0x236>
lea    0xcc9(%rip),%rdi
movsd  0x28(%rsp),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
jmp    13d0 <main+0x240>
ucomisd %xmm0,%xmm2
jbe    1398 <main+0x208>
cvttpd2dq %xmm1,%xmm1
cvtdq2pd %xmm1,%xmm1
call   10b0 <pow@plt>
nopl   (%rax)
mov    %eax,%edi
call   10a0 <push@plt>
jmp    13d0 <main+0x240>
lea    0xcf9(%rip),%rdi
call   1030 <puts@plt>
mov    %rbp,%r13
lea    0x30(%rsp),%rbp
jmp    13d0 <main+0x240>
lea    0xce3(%rip),%rdi
call   1030 <puts@plt>
nopl   0x0(%rax,%rax,1)
movzbl 0xf(%rsp),%ecx
cmp    $0xa,%cl
jne    13f6 <main+0x266>
xor    %eax,%eax
call   1060 <pop@plt>
mov    %r13,%rdi
movsd  %xmm0,0x28(%rsp)
mov    $0x1,%al
call   1050 <printf@plt>
movb   $0x0,0xf(%rsp)
mov    %rbp,%rdi
mov    %r14,%rsi
call   1080 <getop@plt>
mov    (%r12),%edx
cmp    %edx,%eax
je     1419 <main+0x289>
movzbl 0xf(%rsp),%ecx
movsbl %cl,%esi
cmp    %esi,%edx
jne    1200 <main+0x70>
xor    %eax,%eax
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@EOF = global i32 0
@.str = [21 x i8] c"error: zero divisor\0A\00"
@.str.1 = [30 x i8] c"exponent should be positive.\0A\00"
@.str.2 = [21 x i8] c"the last answer: %f\0A\00"
@.str.3 = [27 x i8] c"error: unknown command %s\0A\00"
@.str.4 = [24 x i8] c"the current answer: %f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca [100 x i8]
%8 = alloca [1 x i8]
store i32 0, i32* %1
br label %9
9: ; preds = %128, %0
%10 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%11 = getelementptr inbounds [1 x i8], [1 x i8]* %8, i64 0, i64 0
%12 = call i32 @getop(i8* %10, i8* %11)
store i32 %12, i32* %2
%13 = load i32, i32* @EOF
%14 = icmp ne i32 %12, %13
br i1 %14, label %15, label %21
15: ; preds = %9
%16 = getelementptr inbounds [1 x i8], [1 x i8]* %8, i64 0, i64 0
%17 = load i8, i8* %16
%18 = sext i8 %17 to i32
%19 = load i32, i32* @EOF
%20 = icmp ne i32 %18, %19
br label %21
21: ; preds = %15, %9
%22 = phi i1 [ false, %9 ], [ %20, %15 ]
br i1 %22, label %23, label %129
23: ; preds = %21
%24 = load i32, i32* %2
switch i32 %24, label %117 [
i32 48, label %25
i32 43, label %29
i32 42, label %35
i32 45, label %41
i32 47, label %48
i32 37, label %61
i32 256, label %76
i32 257, label %80
i32 258, label %84
i32 259, label %111
i32 260, label %114
]
25: ; preds = %23
%26 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%27 = call i32 @atof(i8* %26)
%28 = call i32 @push(i32 %27)
br label %118
29: ; preds = %23
%30 = call double (...) @pop()
%31 = call double (...) @pop()
%32 = fadd double %30, %31
%33 = fptosi double %32 to i32
%34 = call i32 @push(i32 %33)
br label %118
35: ; preds = %23
%36 = call double (...) @pop()
%37 = call double (...) @pop()
%38 = fmul double %36, %37
%39 = fptosi double %38 to i32
%40 = call i32 @push(i32 %39)
br label %118
41: ; preds = %23
%42 = call double (...) @pop()
store double %42, double* %5
%43 = call double (...) @pop()
%44 = load double, double* %5
%45 = fsub double %43, %44
%46 = fptosi double %45 to i32
%47 = call i32 @push(i32 %46)
br label %118
48: ; preds = %23
%49 = call double (...) @pop()
store double %49, double* %5
%50 = load double, double* %5
%51 = fcmp une double %50, 0.000000e+00
br i1 %51, label %52, label %58
52: ; preds = %48
%53 = call double (...) @pop()
%54 = load double, double* %5
%55 = fdiv double %53, %54
%56 = fptosi double %55 to i32
%57 = call i32 @push(i32 %56)
br label %60
58: ; preds = %48
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
br label %60
60: ; preds = %58, %52
br label %118
61: ; preds = %23
%62 = call double (...) @pop()
store double %62, double* %5
%63 = load double, double* %5
%64 = fptosi double %63 to i32
%65 = icmp ne i32 %64, 0
br i1 %65, label %66, label %73
66: ; preds = %61
%67 = call double (...) @pop()
%68 = fptosi double %67 to i32
%69 = load double, double* %5
%70 = fptosi double %69 to i32
%71 = srem i32 %68, %70
%72 = call i32 @push(i32 %71)
br label %75
73: ; preds = %61
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
br label %75
75: ; preds = %73, %66
br label %118
76: ; preds = %23
%77 = call double (...) @pop()
%78 = call i32 @sin(double %77)
%79 = call i32 @push(i32 %78)
br label %118
80: ; preds = %23
%81 = call double (...) @pop()
%82 = call i32 @exp(double %81)
%83 = call i32 @push(i32 %82)
br label %118
84: ; preds = %23
%85 = call double (...) @pop()
store double %85, double* %5
%86 = call double (...) @pop()
store double %86, double* %4
%87 = load double, double* %4
%88 = fcmp oeq double %87, 0.000000e+00
br i1 %88, label %89, label %94
89: ; preds = %84
%90 = load double, double* %5
%91 = fcmp ole double %90, 0.000000e+00
br i1 %91, label %92, label %94
92: ; preds = %89
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
br label %110
94: ; preds = %89, %84
%95 = load double, double* %4
%96 = fcmp olt double %95, 0.000000e+00
br i1 %96, label %97, label %104
97: ; preds = %94
%98 = load double, double* %4
%99 = load double, double* %5
%100 = fptosi double %99 to i32
%101 = sitofp i32 %100 to double
%102 = call i32 @pow(double %98, double %101)
%103 = call i32 @push(i32 %102)
br label %109
104: ; preds = %94
%105 = load double, double* %4
%106 = load double, double* %5
%107 = call i32 @pow(double %105, double %106)
%108 = call i32 @push(i32 %107)
br label %109
109: ; preds = %104, %97
br label %110
110: ; preds = %109, %92
br label %118
111: ; preds = %23
%112 = load double, double* %6
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), double %112)
br label %118
114: ; preds = %23
%115 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8* %115)
br label %118
117: ; preds = %23
br label %118
118: ; preds = %117, %114, %111, %110, %80, %76, %75, %60, %41, %35, %29, %25
%119 = getelementptr inbounds [1 x i8], [1 x i8]* %8, i64 0, i64 0
%120 = load i8, i8* %119
%121 = sext i8 %120 to i32
%122 = icmp eq i32 %121, 10
br i1 %122, label %123, label %128
123: ; preds = %118
%124 = call double (...) @pop()
store double %124, double* %6
%125 = load double, double* %6
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), double %125)
%127 = getelementptr inbounds [1 x i8], [1 x i8]* %8, i64 0, i64 0
store i8 0, i8* %127
br label %128
128: ; preds = %123, %118
br label %9
129: ; preds = %21
ret i32 0
}

LLVM IR (-O2):
@EOF = global i32 0
@.str.2 = [21 x i8] c"the last answer: %f\0A\00"
@.str.3 = [27 x i8] c"error: unknown command %s\0A\00"
@.str.4 = [24 x i8] c"the current answer: %f\0A\00"
@str = [29 x i8] c"exponent should be positive.\00"
@str.6 = [20 x i8] c"error: zero divisor\00"
define i32 @main() {
%1 = alloca [100 x i8]
%2 = alloca [1 x i8]
%3 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [1 x i8], [1 x i8]* %2, i64 0, i64 0
%5 = call i32 @getop(i8* %3, i8* %4)
%6 = load i32, i32* @EOF
%7 = icmp ne i32 %5, %6
%8 = load i8, i8* %4
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %6, %9
%11 = select i1 %7, i1 %10, i1 false
br i1 %11, label %12, label %105
12: ; preds = %0, %96
%13 = phi i8 [ %101, %96 ], [ %8, %0 ]
%14 = phi i32 [ %98, %96 ], [ %5, %0 ]
%15 = phi double [ %97, %96 ], [ undef, %0 ]
switch i32 %14, label %90 [
i32 48, label %16
i32 43, label %19
i32 42, label %25
i32 45, label %31
i32 47, label %37
i32 37, label %47
i32 256, label %58
i32 257, label %62
i32 258, label %66
i32 259, label %84
i32 260, label %86
]
16: ; preds = %12
%17 = call i32 @atof(i8* %3)
%18 = call i32 @push(i32 %17)
br label %88
19: ; preds = %12
%20 = call double (...) @pop()
%21 = call double (...) @pop()
%22 = fadd double %20, %21
%23 = fptosi double %22 to i32
%24 = call i32 @push(i32 %23)
br label %88
25: ; preds = %12
%26 = call double (...) @pop()
%27 = call double (...) @pop()
%28 = fmul double %26, %27
%29 = fptosi double %28 to i32
%30 = call i32 @push(i32 %29)
br label %88
31: ; preds = %12
%32 = call double (...) @pop()
%33 = call double (...) @pop()
%34 = fsub double %33, %32
%35 = fptosi double %34 to i32
%36 = call i32 @push(i32 %35)
br label %88
37: ; preds = %12
%38 = call double (...) @pop()
%39 = fcmp une double %38, 0.000000e+00
br i1 %39, label %40, label %45
40: ; preds = %37
%41 = call double (...) @pop()
%42 = fdiv double %41, %38
%43 = fptosi double %42 to i32
%44 = call i32 @push(i32 %43)
br label %88
45: ; preds = %37
%46 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.6, i64 0, i64 0))
br label %88
47: ; preds = %12
%48 = call double (...) @pop()
%49 = fptosi double %48 to i32
%50 = icmp eq i32 %49, 0
br i1 %50, label %56, label %51
51: ; preds = %47
%52 = call double (...) @pop()
%53 = fptosi double %52 to i32
%54 = srem i32 %53, %49
%55 = call i32 @push(i32 %54)
br label %88
56: ; preds = %47
%57 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.6, i64 0, i64 0))
br label %88
58: ; preds = %12
%59 = call double (...) @pop()
%60 = call i32 @sin(double %59)
%61 = call i32 @push(i32 %60)
br label %88
62: ; preds = %12
%63 = call double (...) @pop()
%64 = call i32 @exp(double %63)
%65 = call i32 @push(i32 %64)
br label %88
66: ; preds = %12
%67 = call double (...) @pop()
%68 = call double (...) @pop()
%69 = fcmp oeq double %68, 0.000000e+00
%70 = fcmp ole double %67, 0.000000e+00
%71 = select i1 %69, i1 %70, i1 false
br i1 %71, label %72, label %74
72: ; preds = %66
%73 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str, i64 0, i64 0))
br label %88
74: ; preds = %66
%75 = fcmp olt double %68, 0.000000e+00
br i1 %75, label %76, label %81
76: ; preds = %74
%77 = fptosi double %67 to i32
%78 = sitofp i32 %77 to double
%79 = call i32 @pow(double %68, double %78)
%80 = call i32 @push(i32 %79)
br label %88
81: ; preds = %74
%82 = call i32 @pow(double %68, double %67)
%83 = call i32 @push(i32 %82)
br label %88
84: ; preds = %12
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), double %15)
br label %88
86: ; preds = %12
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8* %3)
br label %88
88: ; preds = %16, %19, %25, %31, %58, %62, %84, %86, %45, %40, %56, %51, %76, %81, %72
%89 = load i8, i8* %4
br label %90
90: ; preds = %88, %12
%91 = phi i8 [ %89, %88 ], [ %13, %12 ]
%92 = icmp eq i8 %91, 10
br i1 %92, label %93, label %96
93: ; preds = %90
%94 = call double (...) @pop()
%95 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), double %94)
store i8 0, i8* %4
br label %96
96: ; preds = %93, %90
%97 = phi double [ %94, %93 ], [ %15, %90 ]
%98 = call i32 @getop(i8* %3, i8* %4)
%99 = load i32, i32* @EOF
%100 = icmp ne i32 %98, %99
%101 = load i8, i8* %4
%102 = sext i8 %101 to i32
%103 = icmp ne i32 %99, %102
%104 = select i1 %100, i1 %103, i1 false
br i1 %104, label %12, label %105
105: ; preds = %96, %0
ret i32 0
}