// File: /workspace/github_cpp_makefile_star2_O1/DCTewi[P]Truthtable-Calculator/functions.cpp
// Function: prepareWork(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void prepareWork(std::string &s)
{
    size_t plc = 0;
    while ((plc = s.find("&&")) != std::string::npos)
    {
        s = s.replace(plc, 2, "&");
    }
    while ((plc = s.find("||")) != std::string::npos)
    {
        s = s.replace(plc, 2, "|");
    }
    while ((plc = s.find("->")) != std::string::npos)
    {
        s = s.replace(plc, 2, "-");
    }
    while ((plc = s.find("==")) != std::string::npos)
    {
        s = s.replace(plc, 2, "=");
    }

    for (int i = 1; i < static_cast<int>(s.size()); i++)
    {
        while (s[i] == '!' && s[i - 1] == '!')
        {
            s = s.substr(0, i - 1) + s.substr(std::min(i + 1, static_cast<int>(s.size())));
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
leaq 0x3bf4(%rip), %rsi      # 0x6080
movl $0x2, %ecx
xorl %edx, %edx
callq 0x2260
cmpq $-0x1, %rax
je 0x24e8
leaq 0x3bdc(%rip), %r14      # 0x6081
leaq 0x3bd4(%rip), %r15      # 0x6080
movl $0x2, %edx
movl $0x1, %r8d
movq %rbx, %rdi
movq %rax, %rsi
movq %r14, %rcx
callq 0x21b0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x20d0
movl $0x2, %ecx
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x2260
cmpq $-0x1, %rax
jne 0x24ac
leaq 0x3b94(%rip), %rsi      # 0x6083
movl $0x2, %ecx
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2260
cmpq $-0x1, %rax
je 0x254e
leaq 0x3b79(%rip), %r14      # 0x6084
leaq 0x3b71(%rip), %r15      # 0x6083
movl $0x2, %edx
movl $0x1, %r8d
movq %rbx, %rdi
movq %rax, %rsi
movq %r14, %rcx
callq 0x21b0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x20d0
movl $0x2, %ecx
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x2260
cmpq $-0x1, %rax
jne 0x2512
leaq 0x3b31(%rip), %rsi      # 0x6086
movl $0x2, %ecx
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2260
cmpq $-0x1, %rax
je 0x25b4
leaq 0x3b18(%rip), %r14      # 0x6089
leaq 0x3b0e(%rip), %r15      # 0x6086
movl $0x2, %edx
movl $0x1, %r8d
movq %rbx, %rdi
movq %rax, %rsi
movq %r14, %rcx
callq 0x21b0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x20d0
movl $0x2, %ecx
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x2260
cmpq $-0x1, %rax
jne 0x2578
leaq 0x3ad0(%rip), %rsi      # 0x608b
movl $0x2, %ecx
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2260
cmpq $-0x1, %rax
je 0x261a
leaq 0x3ab5(%rip), %r14      # 0x608c
leaq 0x3aad(%rip), %r15      # 0x608b
movl $0x2, %edx
movl $0x1, %r8d
movq %rbx, %rdi
movq %rax, %rsi
movq %r14, %rcx
callq 0x21b0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x20d0
movl $0x2, %ecx
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x2260
cmpq $-0x1, %rax
jne 0x25de
cmpl $0x2, 0x8(%rbx)
jl 0x27a8
leaq 0x38(%rsp), %r15
movl $0x1, %r12d
leaq 0x48(%rsp), %r14
movq (%rbx), %rax
cmpb $0x21, (%rax,%r12)
jne 0x2798
leaq -0x1(%r12), %r13
leal 0x1(%r12), %ebp
cmpb $0x21, (%rax,%r13)
jne 0x2798
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
movq %r13, %rcx
callq 0x2190
movl 0x8(%rbx), %eax
cmpl %eax, %ebp
cmovll %ebp, %eax
movslq %eax, %rdx
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
movq $-0x1, %rcx
callq 0x2190
movq 0x48(%rsp), %rcx
movl $0xf, %esi
leaq 0x58(%rsp), %rax
cmpq %rax, %rcx
je 0x269f
movq 0x58(%rsp), %rsi
movq 0x50(%rsp), %r8
movq 0x10(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0x26cd
movl $0xf, %esi
leaq 0x18(%rsp), %rdi
cmpq %rdi, 0x8(%rsp)
je 0x26c8
movq 0x18(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x26dc
movq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x2070
jmp 0x26ea
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21b0
movq %r15, 0x28(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x270a
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x2711
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq %rbx, %rdi
leaq 0x28(%rsp), %rsi
callq 0x21d0
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x2752
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x276e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x278a
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2180
movq (%rbx), %rax
cmpb $0x21, (%rax,%r12)
je 0x264c
incq %r12
movslq 0x8(%rbx), %rax
cmpq %rax, %r12
jl 0x2634
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x27db
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2180
jmp 0x27db
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x27f7
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2180
movq %rbx, %rdi
callq 0x2270