#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 */
double atof(char *);
int /*<<< orphan*/ clearstack();
double exp(double);
scalar_t__ getline2(char *);
int getop(char *, int, char *);
double gettop();
scalar_t__ isnumfmt(char *);
double pop();
double pow(double, double);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ push(double);
double sin(double);
int /*<<< orphan*/ strcmp(char *, char *);
int /*<<< orphan*/ swap();
int main(int argc, char *argv[]) {
  char line[100];
  char t[100];
  double tmp;
  while (getline2(line)) {
    int start = 0;
    while ((start = getop(line, start, t)) != -1) {
      if (isnumfmt(t)) {
        push(atof(t));
      } else if (!strcmp(t, "+")) {
        push(pop() + pop());
      } else if (!strcmp(t, "*")) {
        push(pop() * pop());
      } else if (!strcmp(t, "-")) {
        swap();
        push(pop() - pop());
      } else if (!strcmp(t, "/")) {
        tmp = pop();
        if (tmp != 0) {
          push(pop() / tmp);
        } else {
          pop();
          push(0.0);
          printf("Error: divisor is 0\n");
        }
      } else if (!strcmp(t, "%")) {
        tmp = pop();
        if (tmp != 0) {
          push((int)pop() % (int)tmp);
        } else {
          pop();
          push(0.0);
          printf("Error: divisor is 0\n");
        }
      } else if (!strcmp(t, "pow")) {
        double tmp = pop();
        push(pow(pop(), tmp));
      } else if (!strcmp(t, "exp")) {
        push(exp(pop()));
      } else if (!strcmp(t, "sin")) {
        push(sin(pop()));
      } else {
        printf("Error: unknown token %s\n", t);
      }
    }
    printf("result: %g\n", gettop());
    clearstack();
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x80(%rbp),%rdi
call   1030 <getline2@plt>
cmp    $0x0,%rax
je     1576 <main+0x396>
movl   $0x0,-0xfc(%rbp)
lea    -0x80(%rbp),%rdi
mov    -0xfc(%rbp),%esi
lea    -0xf0(%rbp),%rdx
call   10b0 <getop@plt>
mov    %eax,-0xfc(%rbp)
cmp    $0xffffffff,%eax
je     1555 <main+0x375>
lea    -0xf0(%rbp),%rdi
call   1050 <isnumfmt@plt>
cmp    $0x0,%rax
je     1267 <main+0x87>
lea    -0xf0(%rbp),%rdi
call   1040 <atof@plt>
call   10d0 <push@plt>
jmp    1550 <main+0x370>
lea    -0xf0(%rbp),%rdi
lea    0xd8b(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    12b2 <main+0xd2>
mov    $0x0,%al
call   1070 <pop@plt>
movsd  %xmm0,-0x110(%rbp)
ff
mov    $0x0,%al
call   1070 <pop@plt>
movaps %xmm0,%xmm1
movsd  -0x110(%rbp),%xmm0
ff
addsd  %xmm1,%xmm0
call   10d0 <push@plt>
jmp    154b <main+0x36b>
lea    -0xf0(%rbp),%rdi
lea    0xd42(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    12fd <main+0x11d>
mov    $0x0,%al
call   1070 <pop@plt>
movsd  %xmm0,-0x118(%rbp)
ff
mov    $0x0,%al
call   1070 <pop@plt>
movaps %xmm0,%xmm1
movsd  -0x118(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
call   10d0 <push@plt>
jmp    1546 <main+0x366>
lea    -0xf0(%rbp),%rdi
lea    0xcf9(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    134f <main+0x16f>
mov    $0x0,%al
call   1100 <swap@plt>
mov    $0x0,%al
call   1070 <pop@plt>
movsd  %xmm0,-0x120(%rbp)
ff
mov    $0x0,%al
call   1070 <pop@plt>
movaps %xmm0,%xmm1
movsd  -0x120(%rbp),%xmm0
ff
subsd  %xmm1,%xmm0
call   10d0 <push@plt>
jmp    1541 <main+0x361>
lea    -0xf0(%rbp),%rdi
lea    0xca9(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    13d5 <main+0x1f5>
mov    $0x0,%al
call   1070 <pop@plt>
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0xf8(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    139a <main+0x1ba>
jp     139a <main+0x1ba>
jmp    13b3 <main+0x1d3>
mov    $0x0,%al
call   1070 <pop@plt>
divsd  -0xf8(%rbp),%xmm0
ff
call   10d0 <push@plt>
jmp    13d0 <main+0x1f0>
mov    $0x0,%al
call   1070 <pop@plt>
xorps  %xmm0,%xmm0
call   10d0 <push@plt>
lea    0xc3f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    153c <main+0x35c>
lea    -0xf0(%rbp),%rdi
lea    0xc3a(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    1466 <main+0x286>
mov    $0x0,%al
call   1070 <pop@plt>
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0xf8(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1420 <main+0x240>
jp     1420 <main+0x240>
jmp    1444 <main+0x264>
mov    $0x0,%al
call   1070 <pop@plt>
cvttsd2si %xmm0,%eax
cvttsd2si -0xf8(%rbp),%ecx
ff
cltd
idiv   %ecx
cvtsi2sd %edx,%xmm0
call   10d0 <push@plt>
jmp    1461 <main+0x281>
mov    $0x0,%al
call   1070 <pop@plt>
xorps  %xmm0,%xmm0
call   10d0 <push@plt>
lea    0xbae(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    1537 <main+0x357>
lea    -0xf0(%rbp),%rdi
lea    0xbab(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    14af <main+0x2cf>
mov    $0x0,%al
call   1070 <pop@plt>
movsd  %xmm0,-0x108(%rbp)
ff
mov    $0x0,%al
call   1070 <pop@plt>
movsd  -0x108(%rbp),%xmm1
ff
call   10e0 <pow@plt>
call   10d0 <push@plt>
jmp    1532 <main+0x352>
lea    -0xf0(%rbp),%rdi
lea    0xb66(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    14e1 <main+0x301>
mov    $0x0,%al
call   1070 <pop@plt>
call   10c0 <exp@plt>
call   10d0 <push@plt>
jmp    152d <main+0x34d>
lea    -0xf0(%rbp),%rdi
lea    0xb38(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    1513 <main+0x333>
mov    $0x0,%al
call   1070 <pop@plt>
call   10a0 <sin@plt>
call   10d0 <push@plt>
jmp    1528 <main+0x348>
lea    -0xf0(%rbp),%rsi
lea    0xb0a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    152d <main+0x34d>
jmp    1532 <main+0x352>
jmp    1537 <main+0x357>
jmp    153c <main+0x35c>
jmp    1541 <main+0x361>
jmp    1546 <main+0x366>
jmp    154b <main+0x36b>
jmp    1550 <main+0x370>
jmp    1216 <main+0x36>
mov    $0x0,%al
call   1090 <gettop@plt>
lea    0xae1(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0x0,%al
call   10f0 <clearstack@plt>
jmp    11f9 <main+0x19>
xor    %eax,%eax
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xe8,%rsp
lea    0x80(%rsp),%rdi
call   1030 <getline2@plt>
test   %rax,%rax
je     1429 <main+0x249>
lea    0x80(%rsp),%r14
lea    0x10(%rsp),%rbx
lea    0xe32(%rip),%r15
lea    0xde6(%rip),%r12
lea    0xe30(%rip),%r13
jmp    1259 <main+0x79>
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1090 <gettop@plt>
mov    %r15,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
xor    %eax,%eax
call   10f0 <clearstack@plt>
mov    %r14,%rdi
call   1030 <getline2@plt>
test   %rax,%rax
je     1429 <main+0x249>
mov    %r14,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   10b0 <getop@plt>
cmp    $0xffffffff,%eax
je     1230 <main+0x50>
mov    %eax,%ebp
nopl   (%rax)
mov    %rbx,%rdi
call   1060 <isnumfmt@plt>
test   %rax,%rax
je     12a0 <main+0xc0>
mov    %rbx,%rdi
call   1050 <atof@plt>
call   10d0 <push@plt>
mov    %r14,%rdi
mov    %ebp,%esi
mov    %rbx,%rdx
call   10b0 <getop@plt>
mov    %eax,%ebp
cmp    $0xffffffff,%eax
jne    1270 <main+0x90>
jmp    1230 <main+0x50>
mov    0x10(%rsp),%eax
add    $0xffffffdb,%eax
cmp    $0xa,%ax
ja     12f7 <main+0x117>
movzwl %ax,%eax
movslq (%r12,%rax,4),%rax
add    %r12,%rax
jmp    *%rax
xor    %eax,%eax
call   1080 <pop@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1080 <pop@plt>
movsd  0x8(%rsp),%xmm1
ucomisd 0xd25(%rip),%xmm1
jne    12e3 <main+0x103>
jnp    13db <main+0x1fb>
cvttsd2si %xmm0,%eax
cvttsd2si %xmm1,%ecx
cltd
idiv   %ecx
xorps  %xmm0,%xmm0
cvtsi2sd %edx,%xmm0
jmp    1285 <main+0xa5>
mov    0x10(%rsp),%eax
cmp    $0x6e6973,%eax
je     13f1 <main+0x211>
cmp    $0x707865,%eax
je     1402 <main+0x222>
cmp    $0x776f70,%eax
jne    1413 <main+0x233>
xor    %eax,%eax
call   1080 <pop@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1080 <pop@plt>
movsd  0x8(%rsp),%xmm1
call   10e0 <pow@plt>
jmp    1285 <main+0xa5>
xor    %eax,%eax
call   1080 <pop@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1080 <pop@plt>
addsd  0x8(%rsp),%xmm0
jmp    1285 <main+0xa5>
xor    %eax,%eax
call   1080 <pop@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1080 <pop@plt>
mulsd  0x8(%rsp),%xmm0
jmp    1285 <main+0xa5>
xor    %eax,%eax
call   1100 <swap@plt>
xor    %eax,%eax
call   1080 <pop@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1080 <pop@plt>
movsd  0x8(%rsp),%xmm1
subsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
jmp    1285 <main+0xa5>
xor    %eax,%eax
call   1080 <pop@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1080 <pop@plt>
movsd  0x8(%rsp),%xmm1
ucomisd 0xc32(%rip),%xmm1
jne    13d2 <main+0x1f2>
jnp    13db <main+0x1fb>
divsd  %xmm1,%xmm0
jmp    1285 <main+0xa5>
xorpd  %xmm0,%xmm0
call   10d0 <push@plt>
mov    %r13,%rdi
call   1040 <puts@plt>
jmp    128a <main+0xaa>
xor    %eax,%eax
call   1080 <pop@plt>
call   10a0 <sin@plt>
jmp    1285 <main+0xa5>
xor    %eax,%eax
call   1080 <pop@plt>
call   10c0 <exp@plt>
jmp    1285 <main+0xa5>
lea    0xc1a(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
jmp    128a <main+0xaa>
xor    %eax,%eax
add    $0xe8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str.9 = [25 x i8] c"Error: unknown token %s\0A\00"
@.str.10 = [12 x i8] c"result: %g\0A\00"
@str.11 = [20 x i8] c"Error: divisor is 0\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [100 x i8]
%4 = alloca [100 x i8]
%5 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%7 = call i64 @getline2(i8* %5)
%8 = icmp eq i64 %7, 0
br i1 %8, label %89, label %9
9: ; preds = %2
%10 = bitcast [100 x i8]* %4 to i16*
%11 = bitcast [100 x i8]* %4 to i32*
br label %12
12: ; preds = %9, %83
%13 = call i32 @getop(i8* %5, i32 0, i8* %6)
%14 = icmp eq i32 %13, -1
br i1 %14, label %83, label %15
15: ; preds = %12, %80
%16 = phi i32 [ %81, %80 ], [ %13, %12 ]
%17 = call i64 @isnumfmt(i8* %6)
%18 = icmp eq i64 %17, 0
br i1 %18, label %22, label %19
19: ; preds = %15
%20 = call double @atof(i8* %6)
%21 = call i32 @push(double %20)
br label %80
22: ; preds = %15
%23 = load i16, i16* %10
switch i16 %23, label %63 [
i16 43, label %24
i16 42, label %29
i16 45, label %34
i16 47, label %40
i16 37, label %50
]
24: ; preds = %22
%25 = call double (...) @pop()
%26 = call double (...) @pop()
%27 = fadd double %25, %26
%28 = call i32 @push(double %27)
br label %80
29: ; preds = %22
%30 = call double (...) @pop()
%31 = call double (...) @pop()
%32 = fmul double %30, %31
%33 = call i32 @push(double %32)
br label %80
34: ; preds = %22
%35 = call i32 (...) @swap()
%36 = call double (...) @pop()
%37 = call double (...) @pop()
%38 = fsub double %36, %37
%39 = call i32 @push(double %38)
br label %80
40: ; preds = %22
%41 = call double (...) @pop()
%42 = fcmp une double %41, 0.000000e+00
%43 = call double (...) @pop()
br i1 %42, label %44, label %47
44: ; preds = %40
%45 = fdiv double %43, %41
%46 = call i32 @push(double %45)
br label %80
47: ; preds = %40
%48 = call i32 @push(double 0.000000e+00)
%49 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.11, i64 0, i64 0))
br label %80
50: ; preds = %22
%51 = call double (...) @pop()
%52 = fcmp une double %51, 0.000000e+00
%53 = call double (...) @pop()
br i1 %52, label %54, label %60
54: ; preds = %50
%55 = fptosi double %53 to i32
%56 = fptosi double %51 to i32
%57 = srem i32 %55, %56
%58 = sitofp i32 %57 to double
%59 = call i32 @push(double %58)
br label %80
60: ; preds = %50
%61 = call i32 @push(double 0.000000e+00)
%62 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.11, i64 0, i64 0))
br label %80
63: ; preds = %22
%64 = load i32, i32* %11
switch i32 %64, label %78 [
i32 7827312, label %65
i32 7370853, label %70
i32 7235955, label %74
]
65: ; preds = %63
%66 = call double (...) @pop()
%67 = call double (...) @pop()
%68 = call double @pow(double %67, double %66)
%69 = call i32 @push(double %68)
br label %80
70: ; preds = %63
%71 = call double (...) @pop()
%72 = call double @exp(double %71)
%73 = call i32 @push(double %72)
br label %80
74: ; preds = %63
%75 = call double (...) @pop()
%76 = call double @sin(double %75)
%77 = call i32 @push(double %76)
br label %80
78: ; preds = %63
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.9, i64 0, i64 0), i8* %6)
br label %80
80: ; preds = %24, %34, %60, %54, %70, %78, %74, %65, %44, %47, %29, %19
%81 = call i32 @getop(i8* %5, i32 %16, i8* %6)
%82 = icmp eq i32 %81, -1
br i1 %82, label %83, label %15
83: ; preds = %80, %12
%84 = call double (...) @gettop()
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0), double %84)
%86 = call i32 (...) @clearstack()
%87 = call i64 @getline2(i8* %5)
%88 = icmp eq i64 %87, 0
br i1 %88, label %89, label %12
89: ; preds = %83, %2
ret i32 0
}