// File: /workspace/github_cpp_makefile_star2_O1/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 0x4cdd(%rip), %rdx      # 0x9378
leaq -0x78(%rbp), %rdi
movq %rdx, %rsi
callq 0x7da8
xorl %r15d, %r15d
xorl %ebx, %ebx
xorl %r12d, %r12d
xorl %r13d, %r13d
movq (%r14), %rdx
movzbl (%rdx,%r15), %eax
leaq 0x1(%r15), %rcx
movb 0x1(%rdx,%r15), %dl
movl %eax, %esi
xorb $0x2f, %sil
movl %edx, %edi
xorb $0x2a, %dil
orb %sil, %dil
jne 0x46d9
testb $0x1, %bl
je 0x472a
cmpl $0x2a, %eax
jne 0x46e8
cmpb $0x2f, %dl
jne 0x46e8
testb $0x1, %bl
je 0x473d
leal -0x20(%rax), %ecx
cmpl $0x9, %ecx
ja 0x472f
leaq 0x490d(%rip), %rdx      # 0x9004
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
testb $0x1, %r13b
je 0x487e
cmpl $0x20, %eax
ja 0x47b7
movl %eax, %ecx
movabsq $0x100000601, %rdx      # imm = 0x100000601
btq %rcx, %rdx
jb 0x47a4
jmp 0x47b7
movb $0x1, %r13b
jmp 0x4740
leal -0x9(%rax), %ecx
cmpl $0x2, %ecx
jb 0x47a4
testl %eax, %eax
je 0x47a4
jmp 0x47b7
xorl %r13d, %r13d
movq %rcx, %r15
jmp 0x4972
testb $0x1, %r13b
jne 0x4757
testb $0x1, %bl
je 0x495d
cmpl $0x29, %eax
ja 0x47b7
movl %eax, %ecx
movabsq $0x100000601, %rdx      # imm = 0x100000601
btq %rcx, %rdx
jb 0x47a4
cmpq $0x22, %rcx
je 0x4700
cmpq $0x29, %rcx
jne 0x47b7
testb $0x1, %r13b
jne 0x4789
testb $0x1, %bl
je 0x494a
cmpl $0x22, %eax
ja 0x47b7
movl %eax, %ecx
movabsq $0x100000601, %rdx      # imm = 0x100000601
btq %rcx, %rdx
jae 0x4984
testl %r12d, %r12d
setne %cl
orb %r13b, %cl
testb $0x1, %cl
jne 0x47b7
testb $0x1, %bl
je 0x47d2
testb $0x1, %r13b
jne 0x4972
movsbl %al, %esi
leaq -0x78(%rbp), %rdi
callq 0x3250
jmp 0x4972
movq -0x70(%rbp), %rdx
testq %rdx, %rdx
je 0x492d
leaq -0x88(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x78(%rbp), %rsi
addq %rsi, %rdx
leaq -0x98(%rbp), %rdi
callq 0x7e42
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 0x7e42
movq -0x30(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x7b26
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x4845
callq 0x3280
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x485d
callq 0x3280
xorl %r12d, %r12d
movq -0x70(%rbp), %rdx
leaq -0x78(%rbp), %rdi
xorl %esi, %esi
leaq 0x4b07(%rip), %rcx      # 0x9378
xorl %r8d, %r8d
callq 0x33a0
jmp 0x4972
testb $0x1, %bl
je 0x4932
testl %r12d, %r12d
jne 0x4937
leaq -0xa8(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rdx
addq %rsi, %rdx
leaq -0xb8(%rbp), %rdi
callq 0x7e42
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 0x7e42
movq -0x30(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x7b26
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x48fa
callq 0x3280
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x4912
callq 0x3280
movq -0x70(%rbp), %rdx
leaq -0x78(%rbp), %rdi
xorl %esi, %esi
leaq 0x4a55(%rip), %rcx      # 0x9378
xorl %r8d, %r8d
callq 0x33a0
jmp 0x4945
xorl %r12d, %r12d
jmp 0x4972
testl %r12d, %r12d
je 0x4945
leaq -0x78(%rbp), %rdi
movl $0x22, %esi
callq 0x3250
xorb $0x1, %bl
jmp 0x4972
decl %r12d
je 0x4993
movsbl %al, %esi
leaq -0x78(%rbp), %rdi
callq 0x3250
jmp 0x4972
incl %r12d
cmpl $0x2, %r12d
jb 0x4972
movsbl %al, %esi
leaq -0x78(%rbp), %rdi
callq 0x3250
incq %r15
cmpq 0x8(%r14), %r15
jbe 0x46b2
jmp 0x4a10
cmpq $0x22, %rcx
je 0x4700
jmp 0x47b7
leaq -0xc8(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rdx
addq %rsi, %rdx
leaq -0xd8(%rbp), %rdi
callq 0x7e42
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 0x7e42
movq -0x30(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x7b26
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x49fd
callq 0x3280
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
jmp 0x4853
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x4a22
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 0x4a52
callq 0x3280
jmp 0x4a52
movq %rax, %r14
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
jmp 0x4abd
jmp 0x4acb
movq %rax, %r14
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x4a7e
callq 0x3280
jmp 0x4a7e
movq %rax, %r14
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
jmp 0x4abd
jmp 0x4acb
movq %rax, %r14
jmp 0x4ae0
movq %rax, %r14
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x4aaf
callq 0x3280
jmp 0x4aaf
movq %rax, %r14
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x4ace
callq 0x3280
jmp 0x4ace
jmp 0x4acb
movq %rax, %r14
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x4ae0
callq 0x3280
movq -0x30(%rbp), %rdi
callq 0x7b76
movq %r14, %rdi
callq 0x3410
movq %rax, %rdi
callq 0x79b0