// File: /workspace/github_cpp_makefile_star2_O1/kage08[P]RegexLibrary/Resource.cpp
// Function: toPostFix(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::set<char, std::less<char>, std::allocator<char>>)
string toPostFix(string& regex, set<char> alphabet){
  if(regex=="%") return regex;
  stack<char> opst;
  string ans="";
  for(char c:regex){
    if(alphabet.find(c)!=alphabet.end() || c=='@' || c=='%')
      ans.append(string(1,c));
    else if(c=='(')
      opst.push(c);
    else if(c==')'){
      while(!opst.empty() && opst.top()!='('){
        ans.append(string(1,opst.top()));
        opst.pop();
      }
      opst.pop();
    }
    else if(c=='*')
      opst.push('*');
    else if(c=='.'){
      while(!opst.empty() && opst.top()=='*'){
        ans.append(string(1,'*'));
        opst.pop();
      }
      opst.push(c);
    }
    else if(c=='+'){

      while(!opst.empty() && (opst.top()=='*' || opst.top()=='.')){
        ans.append(string(1,'*'));
        opst.pop();
      }
      opst.push(c);
    }
  }

  while(!opst.empty()){
    ans.append(string(1,opst.top()));
    opst.pop();
  }
  return ans;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, 0x88(%rsp)
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x368e(%rip), %rsi      # 0x7098
movq %r15, %rdi
callq 0x2060
testl %eax, %eax
je 0x3f56
xorps %xmm0, %xmm0
leaq 0x30(%rsp), %rdi
movaps %xmm0, 0x40(%rdi)
movaps %xmm0, 0x30(%rdi)
movaps %xmm0, 0x20(%rdi)
movaps %xmm0, 0x10(%rdi)
movaps %xmm0, (%rdi)
xorl %esi, %esi
callq 0x5fa0
leaq 0x10(%rbx), %rax
movq %rax, 0x90(%rsp)
movq %rax, (%rbx)
leaq 0x3643(%rip), %rdx      # 0x7095
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x526e
movq 0x8(%r15), %rbp
testq %rbp, %rbp
je 0x3e81
movq (%r15), %r12
addq %r12, %rbp
movq 0x88(%rsp), %rax
leaq 0x8(%rax), %r14
leaq 0x20(%rsp), %r13
leaq 0x10(%rsp), %r15
movb (%r12), %al
movb %al, 0xf(%rsp)
movq 0x88(%rsp), %rcx
movq 0x10(%rcx), %rdx
movq %r14, %rcx
testq %rdx, %rdx
je 0x3abc
movq %r14, %rcx
xorl %esi, %esi
cmpb %al, 0x20(%rdx)
setl %sil
cmovgeq %rdx, %rcx
movq 0x10(%rdx,%rsi,8), %rdx
testq %rdx, %rdx
jne 0x3aa5
movq %r14, %rdx
cmpq %r14, %rcx
je 0x3ace
cmpb 0x20(%rcx), %al
cmovlq %r14, %rcx
movq %rcx, %rdx
cmpq %r14, %rdx
setne %cl
cmpb $0x40, %al
sete %dl
orb %cl, %dl
je 0x3b24
movq %r13, 0x10(%rsp)
movsbl %al, %edx
movl $0x1, %esi
movq %r15, %rdi
callq 0x21c0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x2070
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x3e75
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2180
jmp 0x3e75
movzbl %al, %ecx
addl $-0x25, %ecx
cmpl $0x9, %ecx
ja 0x3e75
leaq 0x350e(%rip), %rdx      # 0x7048
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq 0x60(%rsp), %rcx
movq 0x70(%rsp), %rdx
decq %rdx
cmpq %rdx, %rcx
je 0x3e1d
movb %al, (%rcx)
jmp 0x3e16
movq 0x60(%rsp), %rax
cmpq 0x40(%rsp), %rax
je 0x3e2e
movq 0x68(%rsp), %rcx
movq %rax, %rdx
cmpq %rcx, %rax
jne 0x3b8e
movq 0x78(%rsp), %rdx
movq -0x8(%rdx), %rdx
movl $0x200, %esi            # imm = 0x200
addq %rsi, %rdx
cmpb $0x28, -0x1(%rdx)
je 0x3e2e
cmpq %rcx, %rax
jne 0x3bae
movq 0x78(%rsp), %rax
movq -0x8(%rax), %rax
movl $0x200, %ecx            # imm = 0x200
addq %rcx, %rax
movsbl -0x1(%rax), %edx
movq %r13, 0x10(%rsp)
movl $0x1, %esi
movq %r15, %rdi
callq 0x21c0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x2070
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x3bed
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0x60(%rsp), %rax
movq 0x68(%rsp), %rdi
cmpq %rdi, %rax
je 0x3c01
decq %rax
jmp 0x3c34
movl $0x200, %esi            # imm = 0x200
callq 0x2180
movq 0x78(%rsp), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x78(%rsp)
movq -0x8(%rax), %rax
movq %rax, 0x68(%rsp)
leaq 0x200(%rax), %rcx
movq %rcx, 0x70(%rsp)
addq $0x1ff, %rax            # imm = 0x1FF
movq %rax, 0x60(%rsp)
jmp 0x3b65
movq 0x60(%rsp), %rax
cmpq 0x40(%rsp), %rax
je 0x3e03
movq %rax, %rcx
cmpq 0x68(%rsp), %rax
jne 0x3c69
movq 0x78(%rsp), %rcx
movq -0x8(%rcx), %rcx
movl $0x200, %edx            # imm = 0x200
addq %rdx, %rcx
cmpb $0x2a, -0x1(%rcx)
jne 0x3e03
movq %r13, 0x10(%rsp)
movl $0x1, %esi
movq %r15, %rdi
movl $0x2a, %edx
callq 0x21c0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x2070
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x3cb3
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0x60(%rsp), %rax
movq 0x68(%rsp), %rdi
cmpq %rdi, %rax
je 0x3cc7
decq %rax
jmp 0x3cfa
movl $0x200, %esi            # imm = 0x200
callq 0x2180
movq 0x78(%rsp), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x78(%rsp)
movq -0x8(%rax), %rax
movq %rax, 0x68(%rsp)
leaq 0x200(%rax), %rcx
movq %rcx, 0x70(%rsp)
addq $0x1ff, %rax            # imm = 0x1FF
movq %rax, 0x60(%rsp)
jmp 0x3c43
movb $0x2a, 0x10(%rsp)
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0x6320
jmp 0x3e75
movq 0x60(%rsp), %rax
cmpq 0x40(%rsp), %rax
je 0x3e03
movq 0x68(%rsp), %rcx
movq %rax, %rdx
cmpq %rcx, %rax
jne 0x3d49
movq 0x78(%rsp), %rdx
movq -0x8(%rdx), %rdx
movl $0x200, %esi            # imm = 0x200
addq %rsi, %rdx
cmpb $0x2a, -0x1(%rdx)
je 0x3d72
movq %rax, %rdx
cmpq %rcx, %rax
jne 0x3d68
movq 0x78(%rsp), %rcx
movq -0x8(%rcx), %rdx
movl $0x200, %ecx            # imm = 0x200
addq %rcx, %rdx
cmpb $0x2e, -0x1(%rdx)
jne 0x3e03
movq %r13, 0x10(%rsp)
movl $0x1, %esi
movq %r15, %rdi
movl $0x2a, %edx
callq 0x21c0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x2070
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x3db2
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0x60(%rsp), %rax
movq 0x68(%rsp), %rdi
cmpq %rdi, %rax
je 0x3dc6
decq %rax
jmp 0x3df9
movl $0x200, %esi            # imm = 0x200
callq 0x2180
movq 0x78(%rsp), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x78(%rsp)
movq -0x8(%rax), %rax
movq %rax, 0x68(%rsp)
leaq 0x200(%rax), %rcx
movq %rcx, 0x70(%rsp)
addq $0x1ff, %rax            # imm = 0x1FF
movq %rax, 0x60(%rsp)
jmp 0x3d20
movq 0x70(%rsp), %rcx
decq %rcx
cmpq %rcx, %rax
je 0x3e1d
movb 0xf(%rsp), %cl
movb %cl, (%rax)
incq 0x60(%rsp)
jmp 0x3e75
leaq 0x30(%rsp), %rdi
leaq 0xf(%rsp), %rsi
callq 0x6118
jmp 0x3e75
movq 0x68(%rsp), %rdi
cmpq %rdi, %rax
je 0x3e3d
decq %rax
jmp 0x3e70
movl $0x200, %esi            # imm = 0x200
callq 0x2180
movq 0x78(%rsp), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x78(%rsp)
movq -0x8(%rax), %rax
movq %rax, 0x68(%rsp)
leaq 0x200(%rax), %rcx
movq %rcx, 0x70(%rsp)
addq $0x1ff, %rax            # imm = 0x1FF
movq %rax, 0x60(%rsp)
incq %r12
cmpq %rbp, %r12
jne 0x3a86
movq 0x60(%rsp), %rax
cmpq 0x40(%rsp), %rax
je 0x3f4a
leaq 0x20(%rsp), %r15
movl $0x200, %r12d           # imm = 0x200
leaq 0x10(%rsp), %r14
cmpq 0x68(%rsp), %rax
jne 0x3eb4
movq 0x78(%rsp), %rax
movq -0x8(%rax), %rax
addq %r12, %rax
movsbl -0x1(%rax), %edx
movq %r15, 0x10(%rsp)
movl $0x1, %esi
movq %r14, %rdi
callq 0x21c0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x2070
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x3ef3
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0x60(%rsp), %rax
movq 0x68(%rsp), %rdi
cmpq %rdi, %rax
je 0x3f07
decq %rax
jmp 0x3f3a
movl $0x200, %esi            # imm = 0x200
callq 0x2180
movq 0x78(%rsp), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x78(%rsp)
movq -0x8(%rax), %rax
movq %rax, 0x68(%rsp)
leaq 0x200(%rax), %rcx
movq %rcx, 0x70(%rsp)
addq $0x1ff, %rax            # imm = 0x1FF
movq %rax, 0x60(%rsp)
cmpq 0x40(%rsp), %rax
jne 0x3ea1
leaq 0x30(%rsp), %rdi
callq 0x518e
jmp 0x3f6f
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x51de
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x3fe4
jmp 0x3faa
jmp 0x3faa
jmp 0x3faa
jmp 0x3f9b
jmp 0x3faa
jmp 0x3f9b
jmp 0x3faa
jmp 0x3f9b
jmp 0x3faa
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
jne 0x3fbc
jmp 0x3fc9
movq %rax, %r14
jmp 0x3fc9
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x3fc9
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2180
movq (%rbx), %rdi
movq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x3fe4
movq (%rax), %rsi
incq %rsi
callq 0x2180
leaq 0x30(%rsp), %rdi
callq 0x518e
movq %r14, %rdi
callq 0x2270