// File: /workspace/github_cpp_makefile_star2_O3/Lartu[P]polaris/src/polaris.cpp
// Function: tokenize(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
vector<pair<bool, string> > tokenize(string & source){
    vector<pair<bool, string> > tokens;
    string current_token = "";
    bool open_comment = false;
    unsigned int open_block_strings = 0;
    bool open_quoted_string = false;
    // Cuando se cerraron todos los parentesis se pushea
    // Sino cuando se cerraron todos los "
    // Sino cuando hay un espacio
    for(size_t i = 0; i <= source.length(); ++i)
    {
        char current_char = source[i];
        char next_char = source[i + 1];
        if(current_char == '/' && next_char == '*'
        && !open_quoted_string)
        {
            open_comment = true;
            ++i;
        }
        else if(current_char == '*' && next_char == '/'
        && !open_quoted_string)
        {
            open_comment = false;
            ++i;
        }
        else if(current_char == '(' && !open_comment && !open_quoted_string)
        {
            open_block_strings++;
            if(open_block_strings > 1)
            {
                current_token += current_char;
            }
        }
        else if(current_char == ')' && !open_comment && !open_quoted_string)
        {
            open_block_strings--;
            if(open_block_strings > 0)
            {
                current_token += current_char;
            }
            else
            {
                tokens.push_back(make_pair(false, current_token));
                current_token = "";
            }
        }
        else if(current_char == '"' && !open_comment)
        {
            if(open_quoted_string)
            {
                if(open_block_strings > 0)
                {
                    current_token += '"';
                }
                else
                {
                    tokens.push_back(make_pair(false, current_token));
                    current_token = "";
                }
            }
            else
            {
                if(open_block_strings > 0)
                    current_token += '"';
            }
            open_quoted_string = !open_quoted_string;
        }
        else if(
        (current_char == ' '  || current_char == '\t' ||
        current_char == '\n' || current_char == '\0' )
        && !open_comment  && open_block_strings == 0
        && !open_quoted_string)
        {
            if(current_token.length() > 0)
            {
                tokens.push_back(make_pair(true, current_token));
                current_token = "";
            }
        }
        else if(!open_comment)
        {
            current_token += current_char;
        }
    }
    return tokens;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rsi, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, -0x30(%rbp)
movq $0x0, 0x10(%rdi)
leaq -0x68(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x4d00(%rip), %rdx      # 0x9398
leaq -0x78(%rbp), %rdi
movq %rdx, %rsi
callq 0x7d06
xorl %r13d, %r13d
xorl %ebx, %ebx
xorl %r12d, %r12d
xorl %r15d, %r15d
movq (%r14), %rdx
movzbl (%rdx,%r13), %eax
leaq 0x1(%r13), %rcx
movb 0x1(%rdx,%r13), %dl
movl %eax, %esi
xorb $0x2f, %sil
movl %edx, %edi
xorb $0x2a, %dil
orb %sil, %dil
jne 0x46df
testb $0x1, %bl
jne 0x48d4
movb $0x1, %r15b
jmp 0x46f5
cmpl $0x2a, %eax
jne 0x46fd
cmpb $0x2f, %dl
jne 0x46fd
testb $0x1, %bl
jne 0x48d4
xorl %r15d, %r15d
movq %rcx, %r13
jmp 0x48e6
leal -0x20(%rax), %ecx
cmpl $0x9, %ecx
ja 0x47d5
leaq 0x48f4(%rip), %rdx      # 0x9004
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
testb $0x1, %r15b
jne 0x48d4
testb $0x1, %bl
je 0x48fd
testl %r12d, %r12d
jne 0x4902
leaq -0xa8(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rdx
addq %rsi, %rdx
leaq -0xb8(%rbp), %rdi
callq 0x7da4
movb $0x0, -0x58(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0xb8(%rbp), %rsi
movq -0xb0(%rbp), %rdx
addq %rsi, %rdx
leaq -0x50(%rbp), %rdi
callq 0x7da4
movq -0x30(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x7a78
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x479f
callq 0x3280
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x47b7
callq 0x3280
movq -0x70(%rbp), %rdx
leaq -0x78(%rbp), %rdi
xorl %esi, %esi
leaq 0x4bd0(%rip), %rcx      # 0x9398
xorl %r8d, %r8d
callq 0x33a0
jmp 0x4910
leal -0x9(%rax), %ecx
cmpl $0x2, %ecx
jb 0x47e5
testl %eax, %eax
jne 0x48d4
testl %r12d, %r12d
setne %cl
orb %r15b, %cl
testb $0x1, %cl
jne 0x48d4
testb $0x1, %bl
jne 0x48d4
movq -0x70(%rbp), %rdx
testq %rdx, %rdx
je 0x48f8
leaq -0x88(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x78(%rbp), %rsi
addq %rsi, %rdx
leaq -0x98(%rbp), %rdi
callq 0x7da4
movb $0x1, -0x58(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x98(%rbp), %rsi
movq -0x90(%rbp), %rdx
addq %rsi, %rdx
leaq -0x50(%rbp), %rdi
callq 0x7da4
movq -0x30(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x7a78
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x4873
callq 0x3280
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x488b
callq 0x3280
xorl %r12d, %r12d
movq -0x70(%rbp), %rdx
leaq -0x78(%rbp), %rdi
xorl %esi, %esi
leaq 0x4af9(%rip), %rcx      # 0x9398
xorl %r8d, %r8d
callq 0x33a0
jmp 0x48e6
testb $0x1, %r15b
jne 0x48d4
testb $0x1, %bl
jne 0x48d4
decl %r12d
je 0x492e
leaq -0x78(%rbp), %rdi
movl $0x29, %esi
callq 0x3250
jmp 0x48e6
testb $0x1, %r15b
jne 0x48d4
testb $0x1, %bl
je 0x4915
testb $0x1, %r15b
jne 0x48e6
movsbl %al, %esi
leaq -0x78(%rbp), %rdi
callq 0x3250
incq %r13
cmpq 0x8(%r14), %r13
jbe 0x46af
jmp 0x49ab
xorl %r12d, %r12d
jmp 0x48e6
testl %r12d, %r12d
je 0x4910
leaq -0x78(%rbp), %rdi
movl $0x22, %esi
callq 0x3250
xorb $0x1, %bl
jmp 0x48e6
incl %r12d
cmpl $0x2, %r12d
jb 0x48e6
leaq -0x78(%rbp), %rdi
movl $0x28, %esi
callq 0x3250
jmp 0x48e6
leaq -0xc8(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rdx
addq %rsi, %rdx
leaq -0xd8(%rbp), %rdi
callq 0x7da4
movb $0x0, -0x58(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0xd8(%rbp), %rsi
movq -0xd0(%rbp), %rdx
addq %rsi, %rdx
leaq -0x50(%rbp), %rdi
callq 0x7da4
movq -0x30(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x7a78
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x4998
callq 0x3280
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
jmp 0x4881
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x49bd
callq 0x3280
movq -0x30(%rbp), %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x49ed
callq 0x3280
jmp 0x49ed
movq %rax, %r14
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
jmp 0x4a53
jmp 0x4a66
movq %rax, %r14
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x4a19
callq 0x3280
jmp 0x4a19
movq %rax, %r14
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
jmp 0x4a53
jmp 0x4a66
movq %rax, %r14
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x4a45
callq 0x3280
jmp 0x4a45
movq %rax, %r14
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x4a69
callq 0x3280
jmp 0x4a69
jmp 0x4a66
movq %rax, %r14
jmp 0x4a7b
movq %rax, %r14
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x4a7b
callq 0x3280
movq -0x30(%rbp), %rdi
callq 0x7ac8
movq %r14, %rdi
callq 0x3410
movq %rax, %rdi
callq 0x7901