#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(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
scalar_t__ isalpha(char);
scalar_t__ isdigit(char);
int pop();
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ push(char);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ stderr;
char top();
void transition(char *infix) {
  for (char *current = infix; *current != '\0'; ++current) {
    char op = *current;
    char tp = top();
    if (isdigit(op) || isalpha(op)) {
      printf("%c ", op);
      continue;
    }
    if (op != '+' && op != '-' && op != '*' && op != '/' && op != '(' &&
        op != ')' && op != ' ') {
      fprintf(stderr, "`%c` cannot defined.\n", op);
      exit(1);
    }
    if (op == ' ') {
      continue;
    }
    if (tp == '\0') {
      push(op);
      continue;
    }
    switch (op) {
    case '(':
      push(op);
      break;
    case '*':
    case '/':
      if (tp == '*' || tp == '/') {
        do {
          printf("%c ", pop());
          tp = top();
        } while (tp == '*' || tp == '/');
      }
      push(op);
      break;
    case '+':
    case '-':
      while (tp != '(' && tp != '\0') {
        printf("%c ", pop());
        tp = top();
      }
      push(op);
      break;
    case ')':
      while (tp != '(' && tp != '\0') {
        printf("%c ", pop());
        tp = top();
      }
      pop();
      break;
    default:
      fprintf(stderr, "FATAL ERROR.\n");
      exit(1);
    }
  }
  while (top() != '\0') {
    printf("%c ", pop());
  }
  putchar('\n');
}


x86 assembly (clang, -O0):
<transition>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1463 <transition+0x2d3>
mov    -0x10(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x11(%rbp)
mov    $0x0,%al
call   1080 <top@plt>
mov    %al,-0x12(%rbp)
movsbl -0x11(%rbp),%edi
call   1040 <isdigit@plt>
cmp    $0x0,%rax
jne    11ed <transition+0x5d>
movsbl -0x11(%rbp),%edi
call   1090 <isalpha@plt>
cmp    $0x0,%rax
je     1202 <transition+0x72>
movsbl -0x11(%rbp),%esi
lea    0xe28(%rip),%rdi
call   1050 <printf@plt>
jmp    1452 <transition+0x2c2>
movsbl -0x11(%rbp),%eax
cmp    $0x2b,%eax
je     1282 <transition+0xf2>
movsbl -0x11(%rbp),%eax
cmp    $0x2d,%eax
je     1282 <transition+0xf2>
movsbl -0x11(%rbp),%eax
cmp    $0x2a,%eax
je     1282 <transition+0xf2>
movsbl -0x11(%rbp),%eax
cmp    $0x2f,%eax
je     1282 <transition+0xf2>
movsbl -0x11(%rbp),%eax
cmp    $0x28,%eax
je     1282 <transition+0xf2>
movsbl -0x11(%rbp),%eax
cmp    $0x29,%eax
je     1282 <transition+0xf2>
movsbl -0x11(%rbp),%eax
cmp    $0x20,%eax
je     1282 <transition+0xf2>
mov    0x2d7c(%rip),%rax
mov    (%rax),%edi
movsbl -0x11(%rbp),%edx
lea    0xdb3(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
movsbl -0x11(%rbp),%eax
cmp    $0x20,%eax
jne    1294 <transition+0x104>
jmp    1452 <transition+0x2c2>
movsbl -0x12(%rbp),%eax
cmp    $0x0,%eax
jne    12af <transition+0x11f>
movsbl -0x11(%rbp),%edi
call   10a0 <push@plt>
jmp    1452 <transition+0x2c2>
movsbl -0x11(%rbp),%eax
add    $0xffffffd8,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0x7,%eax
ja     142c <transition+0x29c>
mov    -0x20(%rbp),%rax
lea    0xd30(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movsbl -0x11(%rbp),%edi
call   10a0 <push@plt>
jmp    144d <transition+0x2bd>
movsbl -0x12(%rbp),%eax
cmp    $0x2a,%eax
je     1301 <transition+0x171>
movsbl -0x12(%rbp),%eax
cmp    $0x2f,%eax
jne    1354 <transition+0x1c4>
jmp    1306 <transition+0x176>
mov    $0x0,%al
call   1060 <pop@plt>
mov    %eax,%esi
lea    0xd0a(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1080 <top@plt>
mov    %al,-0x12(%rbp)
movsbl -0x12(%rbp),%ecx
mov    $0x1,%al
cmp    $0x2a,%ecx
mov    %al,-0x21(%rbp)
je     1344 <transition+0x1b4>
movsbl -0x12(%rbp),%eax
cmp    $0x2f,%eax
sete   %al
mov    %al,-0x21(%rbp)
mov    -0x21(%rbp),%al
test   $0x1,%al
jne    1306 <transition+0x176>
jmp    1354 <transition+0x1c4>
movsbl -0x11(%rbp),%edi
call   10a0 <push@plt>
jmp    144d <transition+0x2bd>
jmp    1367 <transition+0x1d7>
movsbl -0x12(%rbp),%ecx
xor    %eax,%eax
cmp    $0x28,%ecx
mov    %al,-0x22(%rbp)
je     1386 <transition+0x1f6>
movsbl -0x12(%rbp),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x22(%rbp)
mov    -0x22(%rbp),%al
test   $0x1,%al
jne    1396 <transition+0x206>
jmp    13ba <transition+0x22a>
mov    $0x0,%al
call   1060 <pop@plt>
mov    %eax,%esi
lea    0xc7a(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1080 <top@plt>
mov    %al,-0x12(%rbp)
jmp    1367 <transition+0x1d7>
movsbl -0x11(%rbp),%edi
call   10a0 <push@plt>
jmp    144d <transition+0x2bd>
jmp    13cd <transition+0x23d>
movsbl -0x12(%rbp),%ecx
xor    %eax,%eax
cmp    $0x28,%ecx
mov    %al,-0x23(%rbp)
je     13ec <transition+0x25c>
movsbl -0x12(%rbp),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x23(%rbp)
mov    -0x23(%rbp),%al
test   $0x1,%al
jne    13fc <transition+0x26c>
jmp    1420 <transition+0x290>
mov    $0x0,%al
call   1060 <pop@plt>
mov    %eax,%esi
lea    0xc14(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1080 <top@plt>
mov    %al,-0x12(%rbp)
jmp    13cd <transition+0x23d>
mov    $0x0,%al
call   1060 <pop@plt>
jmp    144d <transition+0x2bd>
mov    0x2bad(%rip),%rax
mov    (%rax),%edi
lea    0xbfe(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
jmp    1452 <transition+0x2c2>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    11a4 <transition+0x14>
jmp    1468 <transition+0x2d8>
mov    $0x0,%al
call   1080 <top@plt>
movsbl %al,%eax
cmp    $0x0,%eax
je     1495 <transition+0x305>
mov    $0x0,%al
call   1060 <pop@plt>
mov    %eax,%esi
lea    0xb95(%rip),%rdi
call   1050 <printf@plt>
jmp    1468 <transition+0x2d8>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<transition>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    (%rdi),%r12b
test   %r12b,%r12b
je     130f <transition+0x17f>
mov    %rdi,%rbx
lea    0xe4f(%rip),%r13
lea    0xe68(%rip),%r14
jmp    11dc <transition+0x4c>
nopw   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %r15d,%esi
call   1050 <printf@plt>
mov    0x1(%rbx),%r12b
add    $0x1,%rbx
test   %r12b,%r12b
je     130f <transition+0x17f>
movsbl %r12b,%r15d
xor    %eax,%eax
call   1080 <top@plt>
mov    %eax,%ebp
mov    %r15d,%edi
call   1040 <isdigit@plt>
test   %rax,%rax
jne    11c0 <transition+0x30>
mov    %r15d,%edi
call   1090 <isalpha@plt>
test   %rax,%rax
jne    11c0 <transition+0x30>
cmp    $0x2f,%r12b
ja     12eb <transition+0x15b>
movzbl %r15b,%eax
movabs $0xaf0000000000,%rcx
bt     %rax,%rcx
jae    12e1 <transition+0x151>
test   %bpl,%bpl
je     1270 <transition+0xe0>
lea    -0x28(%r15),%eax
cmp    $0x7,%eax
ja     1364 <transition+0x1d4>
movslq 0x0(%r13,%rax,4),%rax
add    %r13,%rax
jmp    *%rax
cmp    $0x2f,%bpl
je     1250 <transition+0xc0>
cmp    $0x2a,%bpl
jne    1270 <transition+0xe0>
nopl   (%rax)
xor    %eax,%eax
call   1060 <pop@plt>
mov    %r14,%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1080 <top@plt>
cmp    $0x2a,%al
je     1250 <transition+0xc0>
cmp    $0x2f,%al
je     1250 <transition+0xc0>
mov    %r15d,%edi
call   10a0 <push@plt>
jmp    11cb <transition+0x3b>
nopl   (%rax)
test   %bpl,%bpl
je     1270 <transition+0xe0>
cmp    $0x28,%bpl
je     1270 <transition+0xe0>
xor    %eax,%eax
call   1060 <pop@plt>
mov    %r14,%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1080 <top@plt>
mov    %eax,%ebp
jmp    1280 <transition+0xf0>
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1060 <pop@plt>
mov    %r14,%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1080 <top@plt>
mov    %eax,%ebp
test   %bpl,%bpl
je     12d5 <transition+0x145>
cmp    $0x28,%bpl
jne    12b0 <transition+0x120>
xor    %eax,%eax
call   1060 <pop@plt>
jmp    11cb <transition+0x3b>
cmp    $0x20,%rax
je     11cb <transition+0x3b>
mov    0x2cee(%rip),%rax
mov    (%rax),%edi
lea    0xd29(%rip),%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
xor    %eax,%eax
call   1080 <top@plt>
test   %al,%al
je     134c <transition+0x1bc>
lea    0xcff(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1060 <pop@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1050 <printf@plt>
xor    %eax,%eax
call   1080 <top@plt>
test   %al,%al
jne    1330 <transition+0x1a0>
mov    $0xa,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <putchar@plt>
mov    0x2c75(%rip),%rax
mov    (%rax),%edi
lea    0xcc6(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"%c \00"
@stderr = global i32 0
@.str.1 = [22 x i8] c"`%c` cannot defined.\0A\00"
@.str.2 = [14 x i8] c"FATAL ERROR.\0A\00"
define void @transition(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8
%5 = alloca i8
store i8* %0, i8** %2
%6 = load i8*, i8** %2
store i8* %6, i8** %3
br label %7
7: ; preds = %146, %1
%8 = load i8*, i8** %3
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %149
12: ; preds = %7
%13 = load i8*, i8** %3
%14 = load i8, i8* %13
store i8 %14, i8* %4
%15 = call signext i8 (...) @top()
store i8 %15, i8* %5
%16 = load i8, i8* %4
%17 = call i64 @isdigit(i8 signext %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %23, label %19
19: ; preds = %12
%20 = load i8, i8* %4
%21 = call i64 @isalpha(i8 signext %20)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %27
23: ; preds = %19, %12
%24 = load i8, i8* %4
%25 = sext i8 %24 to i32
%26 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %25)
br label %146
27: ; preds = %19
%28 = load i8, i8* %4
%29 = sext i8 %28 to i32
%30 = icmp ne i32 %29, 43
br i1 %30, label %31, label %61
31: ; preds = %27
%32 = load i8, i8* %4
%33 = sext i8 %32 to i32
%34 = icmp ne i32 %33, 45
br i1 %34, label %35, label %61
35: ; preds = %31
%36 = load i8, i8* %4
%37 = sext i8 %36 to i32
%38 = icmp ne i32 %37, 42
br i1 %38, label %39, label %61
39: ; preds = %35
%40 = load i8, i8* %4
%41 = sext i8 %40 to i32
%42 = icmp ne i32 %41, 47
br i1 %42, label %43, label %61
43: ; preds = %39
%44 = load i8, i8* %4
%45 = sext i8 %44 to i32
%46 = icmp ne i32 %45, 40
br i1 %46, label %47, label %61
47: ; preds = %43
%48 = load i8, i8* %4
%49 = sext i8 %48 to i32
%50 = icmp ne i32 %49, 41
br i1 %50, label %51, label %61
51: ; preds = %47
%52 = load i8, i8* %4
%53 = sext i8 %52 to i32
%54 = icmp ne i32 %53, 32
br i1 %54, label %55, label %61
55: ; preds = %51
%56 = load i32, i32* @stderr
%57 = load i8, i8* %4
%58 = sext i8 %57 to i32
%59 = call i32 (i32, i8*, ...) @fprintf(i32 %56, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 %58)
%60 = call i32 @exit(i32 1)
unreachable
61: ; preds = %51, %47, %43, %39, %35, %31, %27
%62 = load i8, i8* %4
%63 = sext i8 %62 to i32
%64 = icmp eq i32 %63, 32
br i1 %64, label %65, label %66
65: ; preds = %61
br label %146
66: ; preds = %61
%67 = load i8, i8* %5
%68 = sext i8 %67 to i32
%69 = icmp eq i32 %68, 0
br i1 %69, label %70, label %73
70: ; preds = %66
%71 = load i8, i8* %4
%72 = call i32 @push(i8 signext %71)
br label %146
73: ; preds = %66
%74 = load i8, i8* %4
%75 = sext i8 %74 to i32
switch i32 %75, label %141 [
i32 40, label %76
i32 42, label %79
i32 47, label %79
i32 43, label %106
i32 45, label %106
i32 41, label %124
]
76: ; preds = %73
%77 = load i8, i8* %4
%78 = call i32 @push(i8 signext %77)
br label %145
79: ; preds = %73, %73
%80 = load i8, i8* %5
%81 = sext i8 %80 to i32
%82 = icmp eq i32 %81, 42
br i1 %82, label %87, label %83
83: ; preds = %79
%84 = load i8, i8* %5
%85 = sext i8 %84 to i32
%86 = icmp eq i32 %85, 47
br i1 %86, label %87, label %103
87: ; preds = %83, %79
br label %88
88: ; preds = %100, %87
%89 = call i32 (...) @pop()
%90 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %89)
%91 = call signext i8 (...) @top()
store i8 %91, i8* %5
br label %92
92: ; preds = %88
%93 = load i8, i8* %5
%94 = sext i8 %93 to i32
%95 = icmp eq i32 %94, 42
br i1 %95, label %100, label %96
96: ; preds = %92
%97 = load i8, i8* %5
%98 = sext i8 %97 to i32
%99 = icmp eq i32 %98, 47
br label %100
100: ; preds = %96, %92
%101 = phi i1 [ true, %92 ], [ %99, %96 ]
br i1 %101, label %88, label %102
102: ; preds = %100
br label %103
103: ; preds = %102, %83
%104 = load i8, i8* %4
%105 = call i32 @push(i8 signext %104)
br label %145
106: ; preds = %73, %73
br label %107
107: ; preds = %117, %106
%108 = load i8, i8* %5
%109 = sext i8 %108 to i32
%110 = icmp ne i32 %109, 40
br i1 %110, label %111, label %115
111: ; preds = %107
%112 = load i8, i8* %5
%113 = sext i8 %112 to i32
%114 = icmp ne i32 %113, 0
br label %115
115: ; preds = %111, %107
%116 = phi i1 [ false, %107 ], [ %114, %111 ]
br i1 %116, label %117, label %121
117: ; preds = %115
%118 = call i32 (...) @pop()
%119 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %118)
%120 = call signext i8 (...) @top()
store i8 %120, i8* %5
br label %107
121: ; preds = %115
%122 = load i8, i8* %4
%123 = call i32 @push(i8 signext %122)
br label %145
124: ; preds = %73
br label %125
125: ; preds = %135, %124
%126 = load i8, i8* %5
%127 = sext i8 %126 to i32
%128 = icmp ne i32 %127, 40
br i1 %128, label %129, label %133
129: ; preds = %125
%130 = load i8, i8* %5
%131 = sext i8 %130 to i32
%132 = icmp ne i32 %131, 0
br label %133
133: ; preds = %129, %125
%134 = phi i1 [ false, %125 ], [ %132, %129 ]
br i1 %134, label %135, label %139
135: ; preds = %133
%136 = call i32 (...) @pop()
%137 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %136)
%138 = call signext i8 (...) @top()
store i8 %138, i8* %5
br label %125
139: ; preds = %133
%140 = call i32 (...) @pop()
br label %145
141: ; preds = %73
%142 = load i32, i32* @stderr
%143 = call i32 (i32, i8*, ...) @fprintf(i32 %142, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%144 = call i32 @exit(i32 1)
unreachable
145: ; preds = %139, %121, %103, %76
br label %146
146: ; preds = %145, %70, %65, %23
%147 = load i8*, i8** %3
%148 = getelementptr inbounds i8, i8* %147, i32 1
store i8* %148, i8** %3
br label %7
149: ; preds = %7
br label %150
150: ; preds = %154, %149
%151 = call signext i8 (...) @top()
%152 = sext i8 %151 to i32
%153 = icmp ne i32 %152, 0
br i1 %153, label %154, label %157
154: ; preds = %150
%155 = call i32 (...) @pop()
%156 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %155)
br label %150
157: ; preds = %150
%158 = call i32 @putchar(i8 signext 10)
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"%c \00"
@stderr = global i32 0
@.str.1 = [22 x i8] c"`%c` cannot defined.\0A\00"
@.str.2 = [14 x i8] c"FATAL ERROR.\0A\00"
define void @transition(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %4, label %7
4: ; preds = %61, %1
%5 = tail call signext i8 (...) @top()
%6 = icmp eq i8 %5, 0
br i1 %6, label %70, label %65
7: ; preds = %1, %61
%8 = phi i8 [ %63, %61 ], [ %2, %1 ]
%9 = phi i8* [ %62, %61 ], [ %0, %1 ]
%10 = sext i8 %8 to i32
%11 = tail call signext i8 (...) @top()
%12 = tail call i64 @isdigit(i8 signext %8)
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %7
%15 = tail call i64 @isalpha(i8 signext %8)
%16 = icmp eq i64 %15, 0
br i1 %16, label %19, label %17
17: ; preds = %14, %7
%18 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %10)
br label %61
19: ; preds = %14
switch i8 %8, label %20 [
i8 32, label %61
i8 40, label %24
i8 41, label %24
i8 42, label %24
i8 43, label %24
i8 45, label %24
i8 47, label %24
]
20: ; preds = %19
%21 = load i32, i32* @stderr
%22 = tail call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 %10)
%23 = tail call i32 @exit(i32 1)
unreachable
24: ; preds = %19, %19, %19, %19, %19, %19
%25 = icmp eq i8 %11, 0
br i1 %25, label %26, label %28
26: ; preds = %24
%27 = tail call i32 @push(i8 signext %8)
br label %61
28: ; preds = %24
switch i32 %10, label %57 [
i32 40, label %30
i32 42, label %32
i32 47, label %32
i32 43, label %29
i32 45, label %29
i32 41, label %49
]
29: ; preds = %28, %28
br label %41
30: ; preds = %28
%31 = tail call i32 @push(i8 signext %8)
br label %61
32: ; preds = %28, %28
switch i8 %11, label %39 [
i8 47, label %33
i8 42, label %33
]
33: ; preds = %32, %32
br label %34
34: ; preds = %38, %33
%35 = tail call i32 (...) @pop()
%36 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %35)
%37 = tail call signext i8 (...) @top()
switch i8 %37, label %39 [
i8 47, label %38
i8 42, label %38
]
38: ; preds = %34, %34
br label %34
39: ; preds = %34, %32
%40 = tail call i32 @push(i8 signext %8)
br label %61
41: ; preds = %29, %43
%42 = phi i8 [ %46, %43 ], [ %11, %29 ]
switch i8 %42, label %43 [
i8 40, label %47
i8 0, label %47
]
43: ; preds = %41
%44 = tail call i32 (...) @pop()
%45 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %44)
%46 = tail call signext i8 (...) @top()
br label %41
47: ; preds = %41, %41
%48 = tail call i32 @push(i8 signext %8)
br label %61
49: ; preds = %28, %51
%50 = phi i8 [ %54, %51 ], [ %11, %28 ]
switch i8 %50, label %51 [
i8 40, label %55
i8 0, label %55
]
51: ; preds = %49
%52 = tail call i32 (...) @pop()
%53 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %52)
%54 = tail call signext i8 (...) @top()
br label %49
55: ; preds = %49, %49
%56 = tail call i32 (...) @pop()
br label %61
57: ; preds = %28
%58 = load i32, i32* @stderr
%59 = tail call i32 (i32, i8*, ...) @fprintf(i32 %58, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%60 = tail call i32 @exit(i32 1)
unreachable
61: ; preds = %30, %39, %47, %55, %19, %26, %17
%62 = getelementptr inbounds i8, i8* %9, i64 1
%63 = load i8, i8* %62
%64 = icmp eq i8 %63, 0
br i1 %64, label %4, label %7
65: ; preds = %4, %65
%66 = tail call i32 (...) @pop()
%67 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %66)
%68 = tail call signext i8 (...) @top()
%69 = icmp eq i8 %68, 0
br i1 %69, label %70, label %65
70: ; preds = %65, %4
%71 = tail call i32 @putchar(i8 signext 10)
ret void
}