// File: /workspace/github_cpp_makefile_star2_O2/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)
andq $0x0, 0x10(%rdi)
leaq 0x5145(%rip), %rsi      # 0x8398
leaq -0x50(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2120
xorl %r15d, %r15d
xorl %r12d, %r12d
xorl %ebx, %ebx
xorl %r13d, %r13d
cmpq 0x8(%r14), %r13
ja 0x3498
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 0x32a5
testb $0x1, %bl
jne 0x3407
movb $0x1, %r15b
jmp 0x32bb
cmpl $0x2a, %eax
jne 0x32c3
cmpb $0x2f, %dl
jne 0x32c3
testb $0x1, %bl
jne 0x3407
xorl %r15d, %r15d
movq %rcx, %r13
jmp 0x3419
leal -0x20(%rax), %ecx
cmpl $0x9, %ecx
ja 0x3356
leaq 0x4d2e(%rip), %rdx      # 0x8004
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
testb $0x1, %r15b
jne 0x3407
testb $0x1, %bl
je 0x3421
testl %r12d, %r12d
jne 0x3426
leaq -0x98(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x2310
movb $0x0, -0x78(%rbp)
leaq -0x70(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x2310
movq -0x30(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x6266
leaq -0x70(%rbp), %rdi
callq 0x22f0
leaq -0x98(%rbp), %rdi
callq 0x22f0
leaq -0x50(%rbp), %rdi
leaq 0x504c(%rip), %rsi      # 0x8398
callq 0x2420
jmp 0x3432
leal -0x9(%rax), %ecx
cmpl $0x2, %ecx
jb 0x3366
testl %eax, %eax
jne 0x3407
testl %r12d, %r12d
setne %cl
orb %r15b, %cl
testb $0x1, %cl
jne 0x3407
testb $0x1, %bl
jne 0x3407
cmpq $0x0, -0x48(%rbp)
je 0x33d9
leaq -0xd8(%rbp), %r12
movq %r12, %rdi
leaq -0x50(%rbp), %rsi
callq 0x2310
movb $0x1, -0x78(%rbp)
leaq -0x70(%rbp), %rdi
movq %r12, %rsi
callq 0x2310
movq -0x30(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x6266
leaq -0x70(%rbp), %rdi
callq 0x22f0
movq %r12, %rdi
callq 0x22f0
leaq -0x50(%rbp), %rdi
leaq 0x4fc4(%rip), %rsi      # 0x8398
callq 0x2420
xorl %r12d, %r12d
jmp 0x3419
testb $0x1, %r15b
jne 0x3407
testb $0x1, %bl
jne 0x3407
decl %r12d
je 0x344e
leaq -0x50(%rbp), %rdi
pushq $0x29
popq %rsi
callq 0x2230
jmp 0x3419
testb $0x1, %r15b
jne 0x3407
testb $0x1, %bl
je 0x3437
testb $0x1, %r15b
jne 0x3419
movsbl %al, %esi
leaq -0x50(%rbp), %rdi
callq 0x2230
incq %r13
jmp 0x326b
testl %r12d, %r12d
je 0x3432
leaq -0x50(%rbp), %rdi
pushq $0x22
popq %rsi
callq 0x2230
xorb $0x1, %bl
jmp 0x3419
incl %r12d
cmpl $0x2, %r12d
jb 0x3419
leaq -0x50(%rbp), %rdi
pushq $0x28
popq %rsi
callq 0x2230
jmp 0x3419
leaq -0xb8(%rbp), %r12
movq %r12, %rdi
leaq -0x50(%rbp), %rsi
callq 0x2310
movb $0x0, -0x78(%rbp)
leaq -0x70(%rbp), %rdi
movq %r12, %rsi
callq 0x2310
movq -0x30(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x6266
leaq -0x70(%rbp), %rdi
callq 0x22f0
leaq -0xb8(%rbp), %rdi
callq 0x22f0
jmp 0x33c9
leaq -0x50(%rbp), %rdi
callq 0x22f0
movq -0x30(%rbp), %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq -0x70(%rbp), %rdi
callq 0x22f0
jmp 0x34d8
movq %rax, %r14
leaq -0x70(%rbp), %rdi
callq 0x22f0
jmp 0x34eb
jmp 0x3521
movq %rax, %r14
leaq -0x98(%rbp), %rdi
callq 0x22f0
jmp 0x3524
jmp 0x3521
movq %rax, %r14
leaq -0xb8(%rbp), %rdi
callq 0x22f0
jmp 0x3524
movq %rax, %r14
leaq -0x70(%rbp), %rdi
callq 0x22f0
jmp 0x3513
jmp 0x3509
movq %rax, %r14
jmp 0x352d
jmp 0x3521
movq %rax, %r14
leaq -0xd8(%rbp), %rdi
callq 0x22f0
jmp 0x3524
movq %rax, %r14
leaq -0x50(%rbp), %rdi
callq 0x22f0
movq -0x30(%rbp), %rdi
callq 0x62a2
movq %r14, %rdi
callq 0x23e0
movq %rax, %rdi
callq 0x60ad