LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/MaoKo[P]FGFX/fgfl/src/regex.c
// Function: regex_char
static int
regex_char(int kind) {
    if (kind == T_REG_CHAR) {
        size_t input_c = (*C_LEXEME(regex_spec->lex));
        if (input_c == '\\') {
            input_c = C_LEXEME(regex_spec->lex)[1];

            switch (input_c) {
                case 'n': input_c = '\n'; break;
                case 'a': input_c = '\a'; break;
                case 'b': input_c = '\b'; break;
                case 'f': input_c = '\f'; break;
                case 'r': input_c = '\r'; break;
                case 't': input_c = '\t'; break;
                case 'v': input_c = '\v'; break;
                default:  break;
            }
        }
        return (input_c);
    }
    else if (kind == T_OCT_NUM) {
        char const* first_digit = C_LEXEME(regex_spec->lex) + 1;
        size_t oct_num = 0;
        while (*first_digit) {
            oct_num = (*first_digit - '0') + (oct_num * 8);
            ++first_digit;
        }
        return (oct_num);
    }
    else if (kind == T_HEX_NUM) {
        char const* first_digit = C_LEXEME(regex_spec->lex) + 2;
        size_t hex_num = 0;
        while (*first_digit) {
            hex_num = hex_to_dec(*first_digit) + (hex_num * 16);
            ++first_digit;
        }
        return (hex_num);
    }
    return (ERROR);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
cmpl $0x1d, %edi
je 0x6c96
cmpl $0x1e, %edi
je 0x6c27
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x1f, %edi
jne 0x6cca
movq 0x172e5(%rip), %rax     # 0x1dec0
movq (%rax), %rax
movq 0x10(%rax), %rax
movq (%rax), %rcx
movsbl (%rcx), %eax
cmpl $0x5c, %eax
jne 0x6cca
movzbl 0x1(%rcx), %ecx
movsbl %cl, %eax
cmpl $0x6d, %ecx
jle 0x6ccf
addl $-0x6e, %ecx
cmpl $0x8, %ecx
ja 0x6cca
leaq 0x4d78(%rip), %rdx      # 0xb98c
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movl $0xa, %eax
jmp 0x6cca
movq 0x17292(%rip), %rax     # 0x1dec0
movq (%rax), %rax
movq 0x10(%rax), %rax
movq (%rax), %rbx
movb 0x2(%rbx), %r14b
testb %r14b, %r14b
je 0x6cc8
callq 0x2200
movq (%rax), %rcx
addq $0x3, %rbx
xorl %eax, %eax
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movsbl %r14b, %esi
movsbq %sil, %rdi
movzwl (%rcx,%rdi,2), %edi
btl $0xb, %edi
jb 0x6c7c
btl $0x9, %edi
jb 0x6c81
addl $-0x37, %esi
btl $0x8, %edi
cmovael %edx, %esi
jmp 0x6c84
addl $-0x30, %esi
jmp 0x6c84
addl $-0x57, %esi
shll $0x4, %eax
addl %esi, %eax
movb (%rbx), %r14b
incq %rbx
testb %r14b, %r14b
jne 0x6c58
jmp 0x6cca
movq 0x17223(%rip), %rax     # 0x1dec0
movq (%rax), %rax
movq 0x10(%rax), %rax
movq (%rax), %rcx
movb 0x1(%rcx), %dl
testb %dl, %dl
je 0x6cc8
addq $0x2, %rcx
xorl %eax, %eax
movsbl %dl, %edx
leal (%rdx,%rax,8), %eax
addl $-0x30, %eax
movb (%rcx), %dl
incq %rcx
testb %dl, %dl
jne 0x6cb4
jmp 0x6cca
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
cmpl $0x61, %ecx
je 0x6cfa
cmpl $0x62, %ecx
je 0x6d01
cmpl $0x66, %ecx
jne 0x6cca
movl $0xc, %eax
jmp 0x6cca
movl $0x9, %eax
jmp 0x6cca
movl $0xb, %eax
jmp 0x6cca
movl $0xd, %eax
jmp 0x6cca
movl $0x7, %eax
jmp 0x6cca
movl $0x8, %eax
jmp 0x6cca
// File: /workspace/github_c_makefile_star2_O3/MaoKo[P]FGFX/fgfl/src/regex.c
// Function: regex_n_cce
static bitset_t*
regex_n_cce(int kind_cce) {
    switch (kind_cce) {
        case T_N_CCE_ALNUM:
            return (COMPL_BITSET(regex_cce(T_CCE_ALNUM)));
        case T_N_CCE_ALPHA:
            return (COMPL_BITSET(regex_cce(T_CCE_ALPHA)));
        case T_N_CCE_BLANK:
            return (COMPL_BITSET(regex_cce(T_CCE_BLANK)));
        case T_N_CCE_CNTRL:
            return (COMPL_BITSET(regex_cce(T_CCE_CNTRL)));
        case T_N_CCE_DIGIT:
            return (COMPL_BITSET(regex_cce(T_CCE_DIGIT)));
        case T_N_CCE_GRAPH:
            return (COMPL_BITSET(regex_cce(T_CCE_GRAPH)));
        case T_N_CCE_LOWER:
            return (COMPL_BITSET(regex_cce(T_CCE_LOWER)));
        case T_N_CCE_PRINT:
            return (COMPL_BITSET(regex_cce(T_CCE_PRINT)));
        case T_N_CCE_PUNCT:
            return (COMPL_BITSET(regex_cce(T_CCE_PUNCT)));
        case T_N_CCE_SPACE:
            return (COMPL_BITSET(regex_cce(T_CCE_SPACE)));
        case T_N_CCE_UPPER:
            return (COMPL_BITSET(regex_cce(T_CCE_UPPER)));
        case T_N_CCE_XDIGIT:
            return (COMPL_BITSET(regex_cce(T_CCE_XDIGIT)));
        }
    return (NULL_BITSET);
}

// Assembly:
addl $-0x58, %edi
cmpl $0xb, %edi
ja 0x7322
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
leaq 0x4765(%rip), %rax      # 0xb9e0
movslq (%rax,%rdi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movl $0x4b, %edi
jmp 0x7305
movl $0x56, %edi
jmp 0x7305
movl $0x4f, %edi
jmp 0x7305
movl $0x54, %edi
jmp 0x7305
movl $0x4d, %edi
jmp 0x7305
callq 0x247c
movq %rax, %rbx
movl $0x30, %esi
movl $0x3a, %edx
jmp 0x72f6
movl $0x52, %edi
jmp 0x7305
movl $0x4c, %edi
jmp 0x7305
callq 0x247c
movq %rax, %rbx
movl $0x61, %esi
movl $0x7b, %edx
jmp 0x72f6
movl $0x51, %edi
jmp 0x7305
callq 0x247c
movq %rax, %rbx
movl $0x41, %esi
movl $0x5b, %edx
movq %rax, %rdi
callq 0x26df
jmp 0x730d
movl $0x53, %edi
callq 0x6ff6
movq %rax, %rbx
movl $0x3, %edi
movq %rbx, %rsi
xorl %edx, %edx
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x27f4
xorl %eax, %eax
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/MaoKo[P]FGFX/fgfl/src/regex_node.c
// Function: del_regex_node
void
del_regex_node(regex_node_t* node) {
    if (node) {
        if (node->kind_ast == AST_CLASS) 
            { del_bitset(node->class); }
        else if (node->kind_ast == AST_BOUND_NAME)
             { FREE(node->bound_name); }
        else if (CHILD_NODE(node->kind_ast)) {
            del_regex_node(node->left);
            del_regex_node(node->right);
        }
        FREE(node);
    }
}

// Assembly:
testq %rdi, %rdi
je 0x7ba9
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl (%rdi), %eax
cmpl $0x8, %eax
jae 0x7baa
movq 0x10(%rbx), %rdi
callq 0x7b74
movq 0x18(%rbx), %rdi
callq 0x7b74
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2040
retq
je 0x7bbc
cmpl $0xc, %eax
jne 0x7b9b
movq 0x8(%rbx), %rdi
callq 0x24c6
jmp 0x7b9b
movq 0x8(%rbx), %rdi
callq 0x2040
jmp 0x7b9b
// File: /workspace/github_c_makefile_star2_O3/MaoKo[P]FGFX/fgfl/src/regex_node.c
// Function: cpy_regex_node
regex_node_t*
cpy_regex_node(regex_node_t* root) {
    if (root) {
        if (root->kind_ast == AST_SYMBOL) {
            return (new_regex_node(AST_SYMBOL,
                                            root->symbol, root->in_string));
        }
        else if (root->kind_ast == AST_EPSILON)
            { return (new_regex_node(AST_EPSILON)); }
        else if (root->kind_ast == AST_CLASS)  {
            return (new_regex_node(AST_CLASS, dup_bitset(root->class),
                                root->cce_lower, root->cce_upper));
        }
        else if (root->kind_ast == AST_DOT)
            { return (new_regex_node(AST_DOT, root->is_dotall)); }
        else if (root->kind_ast == AST_BOUND_NAME) {
            return (new_regex_node(AST_BOUND_NAME,
                                                strdup(root->bound_name)));
        }
        else if (root->kind_ast == AST_OPTION) {
            return (new_regex_node(AST_OPTION, root->igcase, root->dotall,
                                    root->skipws, root->reverse, root->left));
        }
        else if (CHILD_NODE(root->kind_ast)) { 
            regex_node_t* left = cpy_regex_node(root->left);
            regex_node_t* right = cpy_regex_node(root->right);

            int new_kind = root->kind_ast;
            if (new_kind == AST_LOOK)
                { new_kind = AST_CONCAT; }

            return (new_regex_node(root->kind_ast, left, right));
        }
    }
    return (NULL_NODE);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x7c16
movq %rdi, %rbx
movl (%rdi), %eax
cmpq $0xc, %rax
ja 0x7c16
leaq 0x40c3(%rip), %rcx      # 0xbca8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%rbx), %rdi
callq 0x7bc7
movq %rax, %r14
movq 0x18(%rbx), %rdi
callq 0x7bc7
movl (%rbx), %edi
movq %r14, %rsi
movq %rax, %rdx
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x77d0
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
movl $0xb, %edi
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x77d0
movq 0x8(%rbx), %rdi
callq 0x24f4
movl 0x10(%rbx), %edx
movl 0x14(%rbx), %ecx
movl $0xc, %edi
movq %rax, %rsi
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x77d0
movzbl 0x8(%rbx), %esi
movl $0x9, %edi
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x77d0
movzbl 0x8(%rbx), %esi
movzbl 0x9(%rbx), %edx
movzbl 0xa(%rbx), %ecx
movzbl 0xb(%rbx), %r8d
movq 0x10(%rbx), %r9
movl $0x7, %edi
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x77d0
movl 0x8(%rbx), %esi
movzbl 0xc(%rbx), %edx
movl $0xa, %edi
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x77d0
movq 0x8(%rbx), %rdi
callq 0x21f0
movl $0x8, %edi
movq %rax, %rsi
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x77d0
// File: /workspace/github_c_makefile_star2_O3/MaoKo[P]FGFX/fgfl/src/regex_node.c
// Function: cpy_concat_regex_node
regex_node_t*
cpy_concat_regex_node(regex_node_t* root, size_t size) {
    if (!size)
        { return (new_regex_node(AST_EPSILON)); }
    regex_node_t* atom = root;
    for (size_t i = 1; i < size; ++i)
        { root = new_regex_node(AST_CONCAT, root, cpy_regex_node(atom)); }
    return (root);
}

// Assembly:
testq %rsi, %rsi
je 0x7cdb
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
cmpq $0x1, %rsi
jne 0x7ce7
movq %rbx, %r15
jmp 0x7d0f
movl $0xb, %edi
xorl %eax, %eax
jmp 0x77d0
decq %r14
movq %rbx, %r15
movq %rbx, %rdi
callq 0x7bc7
movl $0x1, %edi
movq %r15, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x77d0
movq %rax, %r15
decq %r14
jne 0x7ced
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/MaoKo[P]FGFX/fgfl/src/regex_node.c
// Function: search_kind_regex_node
void
search_kind_regex_node(regex_node_t* root, size_t kind, vector_t* dst_vect) {
    if (!root)
        { return; }
    else if (root->kind_ast == kind)
        { PUSH_BACK_VECTOR(dst_vect, root); }
    else if (CHILD_NODE(root->kind_ast)) {
        search_kind_regex_node(root->left, kind, dst_vect);
        search_kind_regex_node(root->right, kind, dst_vect);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x7d5a
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movl (%r14), %eax
cmpq %r15, %rax
je 0x7d65
cmpl $0x7, %eax
ja 0x7d5a
movq 0x10(%r14), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x7d1d
movq 0x18(%r14), %r14
testq %r14, %r14
jne 0x7d35
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%rbx), %rsi
movq %rbx, %rdi
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2c21
// File: /workspace/github_c_makefile_star2_O3/MaoKo[P]FGFX/fgfl/src/regex_node.c
// Function: replace_bound_name_node
void
replace_bound_name_node(regex_node_t* root, lexical_spec_t* spec) {
    if (!root)
        { return; }
    else if (CHILD_NODE(root->kind_ast)) {
        if (root->left->kind_ast == AST_BOUND_NAME) {
            regex_node_t* target_node = ((spec_entry_t*)
                                        AT_VECTOR(spec->entry_vect,
                                        root->left->index_token))->regex_ast;

            del_regex_node(root->left);
            root->left = cpy_regex_node(target_node);
        }

        /* Check for '*', '?', '+', '~' operator */
        if (root->right && root->right->kind_ast == AST_BOUND_NAME) {
            regex_node_t* target_node = ((spec_entry_t*)
                                        AT_VECTOR(spec->entry_vect,
                                        root->right->index_token))->regex_ast;

            del_regex_node(root->right);
            root->right = cpy_regex_node(target_node);
        }

        replace_bound_name_node(root->left, spec);
        replace_bound_name_node(root->right, spec);
    }
    else if (root->kind_ast == AST_BOUND_NAME) {
        regex_node_t* target_node = cpy_regex_node(((spec_entry_t*)
                    AT_VECTOR(spec->entry_vect, root->index_token))->regex_ast);

        FREE(root->bound_name);
        memcpy(root, target_node, sizeof(*root));

        FREE(target_node);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x7e1e
movq %rsi, %r14
movq %rdi, %rbx
cmpl $0x8, (%rbx)
jae 0x7e29
movq 0x10(%rbx), %rdi
cmpl $0x8, (%rdi)
jne 0x7dd0
movq 0x8(%r14), %rax
movq (%rax), %rax
movq 0x10(%rdi), %rcx
movq (%rax,%rcx,8), %rax
movq 0x20(%rax), %r15
callq 0x7b74
movq %r15, %rdi
callq 0x7bc7
movq %rax, %rdi
movq %rax, 0x10(%rbx)
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x7e09
cmpl $0x8, (%rax)
jne 0x7e09
movq 0x8(%r14), %rcx
movq (%rcx), %rcx
movq 0x10(%rax), %rdx
movq (%rcx,%rdx,8), %rcx
movq 0x20(%rcx), %r15
movq %rax, %rdi
callq 0x7b74
movq %r15, %rdi
callq 0x7bc7
movq %rax, 0x18(%rbx)
movq 0x10(%rbx), %rdi
movq %r14, %rsi
callq 0x7d7e
movq 0x18(%rbx), %rbx
testq %rbx, %rbx
jne 0x7d97
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jne 0x7e1e
movq 0x8(%r14), %rax
movq (%rax), %rax
movq 0x10(%rbx), %rcx
movq (%rax,%rcx,8), %rax
movq 0x20(%rax), %rdi
callq 0x7bc7
movq %rax, %r14
movq 0x8(%rbx), %rdi
callq 0x2040
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2040
// File: /workspace/github_c_makefile_star2_O3/MaoKo[P]FGFX/fgfl/src/regex_node.c
// Function: set_dotall
regex_node_t*
set_dotall(regex_node_t* root) {
    if (!root)
        { return (NULL_NODE); }
    else if (root->kind_ast == AST_DOT)
        { root->is_dotall = true; }
    return (root);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rax
testq %rdi, %rdi
je 0x7f86
cmpl $0x9, (%rax)
jne 0x7f86
movb $0x1, 0x8(%rax)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/MaoKo[P]FGFX/fgfl/src/regex_node.c
// Function: set_skipws
regex_node_t*
set_skipws(regex_node_t* root) {
    if (!root)
        { return (NULL_NODE); }
    else if ((root->kind_ast == AST_SYMBOL)
                && IS_SKIPWS(root->symbol) && !(root->in_string))
        { root->kind_ast = AST_EPSILON; }
    return (root);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rax
testq %rdi, %rdi
je 0x7fbe
cmpl $0xa, (%rax)
jne 0x7fbe
movl 0x8(%rax), %ecx
cmpq $0x20, %rcx
ja 0x7fbe
movabsq $0x100000600, %rdx      # imm = 0x100000600
btq %rcx, %rdx
jae 0x7fbe
cmpb $0x0, 0xc(%rax)
jne 0x7fbe
movl $0xb, (%rax)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/MaoKo[P]FGFX/fgfl/src/regex_node.c
// Function: set_igcase
regex_node_t*
set_igcase(regex_node_t* root) {
    if (!root)
        { return (NULL_NODE); }
    else if ((root->kind_ast == AST_SYMBOL) || (root->kind_ast == AST_CLASS)) {
        if ((root->kind_ast == AST_SYMBOL) && isalpha(root->symbol)) {
            size_t back_symbol = root->symbol;
            root->kind_ast = AST_CLASS;

            root->class = new_bitset();
            root->cce_lower = root->cce_upper = -1;

            ADD_BITSET(root->class, back_symbol);
        }

        if (root->kind_ast == AST_CLASS) {
            if (root->cce_lower != -1) {
                warnf(root->cce_lower,
                                "[:lower:] is use in ignore case option.");
            } 
            if (root->cce_upper != -1) {
                warnf(root->cce_upper,
                                "[:upper:] is use in ignore case option.");
            } 

            int i;
            while ((i = IT_NEXT(root->class)) != IT_NULL) {
                if (isalpha(i)) {
                    size_t target = (islower(i) ? toupper(i) : tolower(i));
                    ADD_BITSET(root->class, target);    
                }   
            } 
            IT_RESET(root->class);
        }
    }
    return (root);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rdi, %rdi
je 0x810b
movl (%rbx), %eax
cmpl $0xc, %eax
je 0x8046
cmpl $0xa, %eax
jne 0x810b
callq 0x2200
movq (%rax), %rax
movslq 0x8(%rbx), %r14
testb $0x4, 0x1(%rax,%r14,2)
je 0x803d
movl $0xc, (%rbx)
callq 0x247c
movq %rax, 0x8(%rbx)
movq $-0x1, 0x10(%rbx)
movl 0x4(%rax), %ecx
cmpq %rcx, %r14
jae 0x8032
movl $0x1, %edx
movl %r14d, %ecx
shlq %cl, %rdx
movq 0x8(%rax), %rax
shrq $0x6, %r14
orq %rdx, (%rax,%r14,8)
jmp 0x803d
movq %rax, %rdi
movq %r14, %rsi
callq 0x25b0
cmpl $0xc, (%rbx)
jne 0x810b
movslq 0x10(%rbx), %rdi
cmpq $-0x1, %rdi
je 0x805e
leaq 0x3cb5(%rip), %rsi      # 0xbd0c
xorl %eax, %eax
callq 0x22f9
movslq 0x14(%rbx), %rdi
cmpq $-0x1, %rdi
je 0x8076
leaq 0x3cc5(%rip), %rsi      # 0xbd34
xorl %eax, %eax
callq 0x22f9
movq 0x8(%rbx), %rdi
callq 0x291c
cmpl $-0x1, %eax
je 0x80f2
movl %eax, %r15d
callq 0x2200
movq %rax, %r14
movq (%r14), %rax
movslq %r15d, %rcx
movzwl (%rax,%rcx,2), %eax
btl $0xa, %eax
jae 0x80e1
movl %r15d, %edi
btl $0x9, %eax
jb 0x80af
callq 0x2160
jmp 0x80b4
callq 0x2070
movslq %eax, %rcx
movq 0x8(%rbx), %rdi
movl 0x4(%rdi), %eax
cmpq %rax, %rcx
jae 0x80d9
movl $0x1, %eax
shlq %cl, %rax
movq 0x8(%rdi), %rdx
shrq $0x6, %rcx
orq %rax, (%rdx,%rcx,8)
jmp 0x80e1
movq %rcx, %rsi
callq 0x25b0
movq 0x8(%rbx), %rdi
callq 0x291c
movl %eax, %r15d
cmpl $-0x1, %eax
jne 0x808f
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x810b
xorl %ecx, %ecx
cmpb $0x1, 0x54(%rax)
jne 0x8108
movl 0x4(%rax), %ecx
decl %ecx
movl %ecx, 0x50(%rax)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/MaoKo[P]FGFX/fgfl/src/regex_node.c
// Function: set_option_ast
regex_node_t*
set_option_ast(regex_node_t* root, regex_node_t* (*opt_ptr)(regex_node_t*)) {
    if (!root)
        { return (NULL_NODE); }
    else if (CHILD_NODE(root->kind_ast)) {
        if (CHILD_NODE(root->left->kind_ast))
            { root->left = set_option_ast(root->left, opt_ptr); }
        else
            { root->left = (*opt_ptr)(root->left); }

        if (root->right && CHILD_NODE(root->right->kind_ast))
            { root->right = set_option_ast(root->right, opt_ptr); }
        else
            { root->right = (*opt_ptr)(root->right); }
        return (root);
    }
    else
        { return ((*opt_ptr)(root)); }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x8140
movq %rdi, %rbx
cmpl $0x7, (%rdi)
ja 0x8144
movq 0x10(%rbx), %rdi
cmpl $0x7, (%rdi)
ja 0x814d
movq %rsi, %r14
callq 0x8119
jmp 0x8152
xorl %ebx, %ebx
jmp 0x8175
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmpq *%rsi
movq %rsi, %r14
callq *%rsi
movq %rax, 0x10(%rbx)
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x816e
cmpl $0x7, (%rdi)
ja 0x816e
movq %r14, %rsi
callq 0x8119
jmp 0x8171
callq *%r14
movq %rax, 0x18(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/MaoKo[P]FGFX/fgfl/src/regex_node.c
// Function: reverse_regex_concat
regex_node_t*
reverse_regex_concat(regex_node_t* root) {
    if (!root)
        { return (NULL_NODE); }

    switch (root->kind_ast) {
        case AST_CONCAT: ;
            regex_node_t* left  = reverse_regex_concat(root->left);
            regex_node_t* right = reverse_regex_concat(root->right);

            if (root->left->kind_ast != AST_CONCAT) {
                root->left  = right;
                root->right = left;
            }
            else {
                root->right = root->left->right;
                root->left->right = root->left->left;
                root->left->left = right;
            }

            break;

        case AST_UNION:
            reverse_regex_concat(root->left);
            reverse_regex_concat(root->right);

            break;

        case AST_QUES:
        case AST_STAR:
        case AST_PLUS:
        case AST_TILDE:
        case AST_OPTION:
            reverse_regex_concat(root->left);
            break;
    
        default:
            break;
    }

    return (root);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rdi, %rdi
je 0x81d5
movq %rdi, %rbx
xorl %r12d, %r12d
movl $0xdc, %r14d
movl (%rbx), %eax
cmpl $0x7, %eax
ja 0x821e
movl $0x10, %ecx
btl %eax, %r14d
jae 0x81c1
testb $0x1, %r12b
cmoveq %rbx, %r15
movq (%rbx,%rcx), %rbx
movb $0x1, %r12b
testq %rbx, %rbx
jne 0x8199
jmp 0x8224
testl %eax, %eax
jne 0x81d9
movq 0x10(%rbx), %rdi
callq 0x817d
movl $0x18, %ecx
jmp 0x81ab
xorl %ebx, %ebx
jmp 0x8227
cmpl $0x1, %eax
jne 0x821e
movq 0x10(%rbx), %rdi
callq 0x817d
movq %rax, %r14
movq 0x18(%rbx), %rdi
callq 0x817d
movq 0x10(%rbx), %rcx
cmpl $0x1, (%rcx)
jne 0x8216
movq 0x18(%rcx), %rdx
movq %rdx, 0x18(%rbx)
movq 0x10(%rcx), %rdx
movq %rdx, 0x18(%rcx)
movq 0x10(%rbx), %rcx
movq %rax, 0x10(%rcx)
jmp 0x821e
movq %rax, 0x10(%rbx)
movq %r14, 0x18(%rbx)
testb $0x1, %r12b
je 0x8227
movq %r15, %rbx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/MaoKo[P]FGFX/fgfl/src/preprocess_regex.c
// Function: topological_sort
vector_t*
topological_sort(lexical_spec_t* spec) {
    vector_t* stack_order = new_vector();
    bitset_t* seen_reg = new_bitset();

    int exit_st = DONE;
    for (size_t i = 0; i < SIZE_VECTOR(spec->entry_vect); ++i) {
        spec_entry_t* crt_entry = (spec_entry_t*)AT_VECTOR(spec->entry_vect, i);
        if (!((crt_entry->kind == T_TERMINAL) && (!crt_entry->fragment)))
            { continue; }
        else if (IS_PRESENT(seen_reg, GET_INDEX(crt_entry)))
            { continue; }

        if (recur_node_topsort(spec, crt_entry,
                                i, stack_order, seen_reg) == ERROR)
            { exit_st = ERROR; }
    }

    if (exit_st == ERROR) {
        del_vector(stack_order);
        stack_order = NULL_VECT;
    }
    del_bitset(seen_reg);

    return (stack_order);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r15
callq 0x2b2c
movq %rax, %rbx
callq 0x247c
movq %rax, %r14
movq 0x8(%r15), %rax
cmpq $0x0, 0x10(%rax)
je 0x82d4
xorl %r12d, %r12d
xorl %r13d, %r13d
movq (%rax), %rcx
movq (%rcx,%r12,8), %rsi
cmpl $0x2d, 0x8(%rsi)
jne 0x82bb
cmpb $0x0, 0x18(%rsi)
jne 0x82bb
testq %r14, %r14
je 0x829f
movq (%rsi), %rcx
movl 0x4(%r14), %edx
cmpq %rdx, %rcx
jae 0x829f
movq 0x8(%r14), %rdx
movq %rcx, %rdi
shrq $0x6, %rdi
movq (%rdx,%rdi,8), %rdx
btq %rcx, %rdx
jb 0x82bb
movq %r15, %rdi
movq %r12, %rdx
movq %rbx, %rcx
movq %r14, %r8
callq 0x82ee
cmpl $-0x1, %eax
cmovel %eax, %r13d
movq 0x8(%r15), %rax
incq %r12
cmpq 0x10(%rax), %r12
jb 0x8266
cmpl $-0x1, %r13d
jne 0x82d4
movq %rbx, %rdi
callq 0x2bce
xorl %ebx, %ebx
movq %r14, %rdi
callq 0x24c6
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/MaoKo[P]FGFX/fgfl/src/preprocess_regex.c
// Function: expand_macro_regex
int
expand_macro_regex(lexical_spec_t* spec) {
    vector_t* stack_order;
    int exit_st = DONE;

    if ((stack_order = topological_sort(spec))) {
        for (size_t i = 0; i < SIZE_VECTOR(stack_order); ++i) {
            size_t j = (long)AT_VECTOR(stack_order, i);
            spec_entry_t* crt_entry = (spec_entry_t*)
                                            AT_VECTOR(spec->entry_vect, j);
            replace_bound_name_node(crt_entry->regex_ast, spec);
            remove_useless_epsilon(crt_entry->regex_ast);

#if 0
            if (IS_LOOK(crt_entry->regex_ast))
                { readjust_opt_ast(crt_entry->regex_ast->right); }
#endif
        }
    }
    else
        { exit_st = ERROR; }

    del_vector(stack_order);
    return (exit_st);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r15
callq 0x8234
movq %rax, %rbx
testq %rax, %rax
je 0x862f
cmpq $0x0, 0x10(%rbx)
je 0x8637
xorl %r14d, %r14d
xorl %r12d, %r12d
movq (%rbx), %rax
movq (%rax,%r12,8), %rax
movq 0x8(%r15), %rcx
movq (%rcx), %rcx
movq (%rcx,%rax,8), %r13
movq 0x20(%r13), %rdi
movq %r15, %rsi
callq 0x7d7e
movq 0x20(%r13), %rdi
callq 0x7e71
incq %r12
cmpq 0x10(%rbx), %r12
jb 0x85fd
jmp 0x863a
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
jmp 0x863a
xorl %r14d, %r14d
movq %rbx, %rdi
callq 0x2bce
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/MaoKo[P]FGFX/fgfl/src/dfa.c
// Function: new_dfa_state
dfa_state_t*
new_dfa_state(bitset_t* set_state, vector_t* states) {
    dfa_state_t* state = NEW(dfa_state_t, 1);

    if (!state)
        { return (NULL_DFA_STATE); }
    memset(state, 0, sizeof(*state));

    if (set_state) {
        state->set_state = set_state;
        state->hash_state = hash_bitset(set_state);
    }

    state->final_entry = NO_FINAL;
    state->final_anchor_entry = NO_FINAL;

    state->group = START_GROUP;

    state->index = SIZE_VECTOR(states);
    PUSH_BACK_VECTOR(states, state);

    return (state);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
movl $0x30, %edi
callq 0x3a4e
movq %rax, %rbx
testq %rax, %rax
je 0x86ba
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x10(%rbx)
movups %xmm0, (%rbx)
testq %r15, %r15
je 0x8699
movq %r15, 0x8(%rbx)
movq %r15, %rdi
callq 0x298f
movq %rax, 0x10(%rbx)
movq $-0x1, 0x24(%rbx)
movl $0x1, 0x2c(%rbx)
movq 0x10(%r14), %rsi
movq %rsi, (%rbx)
movq %r14, %rdi
movq %rbx, %rdx
callq 0x2c21
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/MaoKo[P]FGFX/fgfl/src/dfa.c
// Function: del_dfa_state
void
del_dfa_state(dfa_state_t* dfa_state) {
    if (dfa_state) {
        del_bitset(dfa_state->set_state);
        del_trans_list(dfa_state->trans);
    }
    FREE(dfa_state);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rdi, %rdi
je 0x86e8
movq 0x8(%rbx), %rdi
callq 0x24c6
movq 0x18(%rbx), %rdi
callq 0x3bba
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2040
// File: /workspace/github_c_makefile_star2_O3/MaoKo[P]FGFX/fgfl/src/dfa.c
// Function: epsilon_closure
static bitset_t*
epsilon_closure(bitset_t* set_state) {
    if (!set_state)
        { return (NULL_BITSET); }

    bitset_t* seen_state = new_bitset();
    bool change = false;

    do {
        int i;
        change = false;

        while ((i = IT_NEXT(set_state)) != IT_NULL) {
            if (!IS_PRESENT(seen_state, (size_t)i)) {
                nfa_state_t* crt_state = NFA_STATE_AT(i);
                if (!do_eclos) {
                    if (crt_state->eclos) {
                        if (!is_subset_bitset(set_state, crt_state->eclos))
                            { UNION_BITSET(set_state, crt_state->eclos); }
                        else
                            { continue; }
                    }
                    else {
                        nfa_state_edges(NFA_STATE_AT(i), EPSILON, set_state);
                        ADD_BITSET(seen_state, (size_t)i);
                    }
                    change = true;
                }
                else
                    { UNION_BITSET(set_state, crt_state->eclos); }
            }
        }
        IT_RESET(set_state);
    } while (change);

    del_bitset(seen_state);
    return (set_state);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rdi, %rdi
je 0x8c68
xorl %r15d, %r15d
callq 0x247c
movq %rax, %r14
movl %r15d, -0x2c(%rbp)
movq %rbx, %rdi
callq 0x291c
cmpl $-0x1, %eax
setne %r13b
je 0x8bdf
movslq %eax, %r15
testq %r14, %r14
je 0x8b9e
movl 0x4(%r14), %eax
cmpq %rax, %r15
jae 0x8b9e
movq 0x8(%r14), %rax
movq %r15, %rcx
shrq $0x6, %rcx
movq (%rax,%rcx,8), %rax
btq %r15, %rax
jb 0x8b67
leaq 0x1530b(%rip), %rax     # 0x1deb0
movq (%rax), %rax
movq (%rax), %rax
movq (%rax,%r15,8), %r12
movq 0x30(%r12), %rdx
cmpb $0x0, 0x15315(%rip)     # 0x1ded0
jne 0x8bd3
testq %rdx, %rdx
je 0x8bfe
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x29b9
testb %al, %al
jne 0x8b67
jmp 0x8c36
xorl %edi, %edi
movq %rbx, %rsi
callq 0x27f4
jmp 0x8b67
xorl %eax, %eax
cmpb $0x1, 0x54(%rbx)
jne 0x8bec
movl 0x4(%rbx), %eax
decl %eax
movl %eax, 0x50(%rbx)
testb $0x1, -0x2c(%rbp)
movl %r13d, %r15d
jne 0x8b63
jmp 0x8c60
movq %r12, %rdi
movl $0x101, %esi            # imm = 0x101
movq %rbx, %rdx
callq 0x8c7a
movl 0x4(%r14), %eax
cmpq %rax, %r15
jae 0x8c4d
movl $0x1, %eax
movl %r15d, %ecx
shlq %cl, %rax
movq 0x8(%r14), %rcx
shrq $0x6, %r15
orq %rax, (%rcx,%r15,8)
movl %r13d, %r15d
jmp 0x8b63
movq 0x30(%r12), %rdx
xorl %edi, %edi
movq %rbx, %rsi
callq 0x27f4
movl %r13d, %r15d
jmp 0x8b63
movq %r14, %rdi
movq %r15, %rsi
callq 0x25b0
movl %r13d, %r15d
jmp 0x8b63
movq %r14, %rdi
callq 0x24c6
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/MaoKo[P]FGFX/fgfl/src/dfa.c
// Function: nfa_state_edges
static void
nfa_state_edges(nfa_state_t* state, int symbol, bitset_t* result) {
    switch (state->symbol_edge) {
        case EDGE_AUTOMATA:
            nfa_automaton_edges(state->edge, symbol, result);
            if (state->edge2)
                { nfa_automaton_edges(state->edge2, symbol, result); }
            break;

        case EDGE_CLASS:
            if ((symbol != EPSILON)
                                && (IS_PRESENT(state->class, (size_t)symbol)))
                { ADD_BITSET(result, GET_INDEX(state->out_state)); }
            break;

        case EDGE_BOTH:
            nfa_automaton_edges(state->edge, symbol, result);
            if (symbol == EPSILON)
                { ADD_BITSET(result, GET_INDEX(state->out_state)); }
            break;       

        case NO_EDGE:
            break;

        default:
            if (symbol == state->symbol_edge)
                { ADD_BITSET(result, GET_INDEX(state->out_state)); }
    }    
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %r15d
movq %rdi, %r14
movl 0x10(%rdi), %ecx
leal 0x4(%rcx), %eax
cmpl $0x3, %eax
ja 0x8d21
leaq 0x317d(%rip), %rcx      # 0xbe20
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x20(%r14), %rdi
movl %r15d, %esi
movq %rbx, %rdx
callq 0x8d69
cmpl $0x101, %r15d           # imm = 0x101
je 0x8d26
jmp 0x8d49
cmpl $0x101, %r15d           # imm = 0x101
je 0x8d49
movq 0x28(%r14), %rax
testq %rax, %rax
je 0x8d49
cmpl %r15d, 0x4(%rax)
jbe 0x8d49
movq 0x8(%rax), %rax
movl %r15d, %ecx
shrl $0x6, %ecx
movq (%rax,%rcx,8), %rax
btq %r15, %rax
jb 0x8d26
jmp 0x8d49
movq 0x20(%r14), %rdi
movl %r15d, %esi
movq %rbx, %rdx
callq 0x8d69
movq 0x28(%r14), %rdi
testq %rdi, %rdi
je 0x8d49
movl %r15d, %esi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x8d69
cmpl %r15d, %ecx
jne 0x8d49
movq 0x18(%r14), %rax
movq (%rax), %rcx
movl 0x4(%rbx), %eax
cmpq %rax, %rcx
jae 0x8d54
movl $0x1, %eax
shlq %cl, %rax
movq 0x8(%rbx), %rdx
shrq $0x6, %rcx
orq %rax, (%rdx,%rcx,8)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movq %rcx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x25b0
// File: /workspace/github_c_makefile_star2_O3/MaoKo[P]FGFX/fgfl/src/dfa.c
// Function: nfa_automaton_edges
static void
nfa_automaton_edges(nfa_automaton_t* nfa_m, int symbol, bitset_t* result) {
    switch (nfa_m->kind_nfa) {
        case NFA_UNION:
        case NFA_CLASS:
            if (symbol == EPSILON)
                { ADD_BITSET(result, GET_INDEX(nfa_m->tail_state)); }
            break;

        case NFA_SYMBOL:
            if (nfa_m->out_symbol == symbol)
                { ADD_BITSET(result, GET_INDEX(nfa_m->head_state)); }
            break;

        case NFA_CLOSURE:
        case NFA_EPSILON:
            if (symbol == EPSILON)
                { ADD_BITSET(result, GET_INDEX(nfa_m->head_state)); }
            break;

        case NFA_CONCAT:
            nfa_automaton_edges(nfa_m->left, symbol, result);
            break;

        case NFA_MASTER: ;
                int i;
                while ((i = IT_NEXT(nfa_m->out_automata)) != IT_NULL) {
                    nfa_automaton_t* crt_nfa_m = AUTOMATON_AT(i);
                    nfa_automaton_edges(crt_nfa_m, symbol, result);
                }
                IT_RESET(nfa_m->out_automata);
                break;

        default:
            break;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movl %esi, %r15d
movq %rdi, %r14
movl 0x8(%r14), %eax
cmpl $0x2, %eax
jne 0x8d8c
movq 0x18(%r14), %r14
jmp 0x8d7d
cmpl $0x6, %eax
ja 0x8e45
movl %eax, %eax
leaq 0x3092(%rip), %rcx      # 0xbe30
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpl $0x101, %r15d           # imm = 0x101
je 0x8e22
jmp 0x8e45
cmpl $0x101, %r15d           # imm = 0x101
jne 0x8e45
movq 0x10(%r14), %rax
jmp 0x8e26
movq 0x10(%r14), %rdi
callq 0x291c
cmpl $-0x1, %eax
je 0x8e03
leaq 0x150db(%rip), %r12     # 0x1deb8
movq (%r12), %rcx
movq (%rcx), %rcx
cltq
movq (%rcx,%rax,8), %rdi
movl %r15d, %esi
movq %rbx, %rdx
callq 0x8d69
movq 0x10(%r14), %rdi
callq 0x291c
cmpl $-0x1, %eax
jne 0x8ddd
movq 0x10(%r14), %rax
testq %rax, %rax
je 0x8e45
cmpb $0x0, 0x54(%rax)
je 0x8e61
movl 0x4(%rax), %ecx
decl %ecx
movl %ecx, 0x50(%rax)
jmp 0x8e45
cmpl %r15d, 0x10(%r14)
jne 0x8e45
movq 0x28(%r14), %rax
movq (%rax), %rcx
movl 0x4(%rbx), %eax
cmpq %rax, %rcx
jae 0x8e4e
movl $0x1, %eax
shlq %cl, %rax
movq 0x8(%rbx), %rdx
shrq $0x6, %rcx
orq %rax, (%rdx,%rcx,8)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movq %rcx, %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x25b0
movl $0x0, 0x50(%rax)
jmp 0x8e45
nop
// File: /workspace/github_c_makefile_star2_O3/MaoKo[P]FGFX/fgfl/src/gen_dfa.c
// Function: gen_state_enum
void
gen_state_enum(int filde, lexical_spec_t const* spec) {
    size_t size_state = SIZE_VECTOR(spec->state_vect);
    dprintf(filde, ENUM SP BEG_BLOCK NL);

    dprintf(filde, TAB DUMMY_STR COMMA NL);
    for (size_t i = 0; i < size_state; ++i) {
        spec_entry_t* crt_state = (spec_entry_t*)AT_VECTOR(spec->state_vect, i);
        ENUM_STATE_LINE(filde, crt_state->name);
    }
    dprintf(filde, END_BLOCK SEMI NL NL);

    spec_entry_t* init_state = AT_VECTOR(spec->state_vect, spec->start_state);

    dprintf(filde, DEFINE(%s, %zu) NL, MACRO_STATE, size_state + 1);
    dprintf(filde, DEFINE(%s, %s%s%s) NL NL,
                        "INIT_STATE", STATE_PREFIX, SEP, init_state->name);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movl %edi, %ebx
movq 0x10(%rsi), %rax
movq 0x10(%rax), %r14
leaq 0x2fbe(%rip), %rsi      # 0xbe4c
xorl %eax, %eax
callq 0x2110
leaq 0x2fb8(%rip), %rsi      # 0xbe54
movl %ebx, %edi
xorl %eax, %eax
callq 0x2110
testq %r14, %r14
je 0x8ed7
leaq 0x2fb2(%rip), %r12      # 0xbe63
xorl %r13d, %r13d
movq 0x10(%r15), %rax
movq (%rax), %rax
movq (%rax,%r13,8), %rax
movq 0x10(%rax), %rdx
movl %ebx, %edi
movq %r12, %rsi
xorl %eax, %eax
callq 0x2110
incq %r13
cmpq %r13, %r14
jne 0x8eb4
leaq 0x3177(%rip), %rsi      # 0xc055
movl %ebx, %edi
xorl %eax, %eax
callq 0x2110
movq 0x10(%r15), %rax
movq (%rax), %rax
movslq 0x18(%r15), %rcx
movq (%rax,%rcx,8), %r15
incq %r14
leaq 0x2f6b(%rip), %rsi      # 0xbe6b
leaq 0x2f74(%rip), %rdx      # 0xbe7b
movl %ebx, %edi
movq %r14, %rcx
xorl %eax, %eax
callq 0x2110
movq 0x10(%r15), %r9
leaq 0x2f69(%rip), %rsi      # 0xbe87
leaq 0x2f76(%rip), %rdx      # 0xbe9b
leaq 0x1dbb(%rip), %rcx      # 0xace7
leaq 0x2013(%rip), %r8       # 0xaf46
movl %ebx, %edi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2110
// File: /workspace/github_c_makefile_star2_O3/MaoKo[P]FGFX/fgfl/src/gen_dfa.c
// Function: gen_token_enum
void
gen_token_enum(int filde, lexical_spec_t const* spec) {
    size_t size_entry = SIZE_VECTOR(spec->entry_vect);
    dprintf(filde, ENUM SP BEG_BLOCK NL);

    for (size_t i = 0; i < size_entry; ++i) {
        spec_entry_t* entry = (spec_entry_t*)AT_VECTOR(spec->entry_vect, i);
        ENUM_TOKEN_LINE(filde, entry->name);
    }

    ENUM_TOKEN_LINE(filde, "ERROR");
    ENUM_TOKEN_LINE(filde, "EOF");

    dprintf(filde, END_BLOCK SEMI NL NL);
    dprintf(filde, DEFINE(%s, %zu) NL NL, MACRO_TOKEN, size_entry + 2);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movl %edi, %r14d
movq 0x8(%rsi), %rax
movq 0x10(%rax), %rbx
leaq 0x2edf(%rip), %rsi      # 0xbe4c
xorl %eax, %eax
callq 0x2110
testq %rbx, %rbx
je 0x8fa7
leaq 0x2f26(%rip), %r12      # 0xbea6
xorl %r13d, %r13d
movq 0x8(%r15), %rax
movq (%rax), %rax
movq (%rax,%r13,8), %rax
movq 0x10(%rax), %rdx
movl %r14d, %edi
movq %r12, %rsi
xorl %eax, %eax
callq 0x2110
incq %r13
cmpq %r13, %rbx
jne 0x8f83
leaq 0x2ef8(%rip), %r15      # 0xbea6
leaq 0x1fdd(%rip), %rdx      # 0xaf92
movl %r14d, %edi
movq %r15, %rsi
xorl %eax, %eax
callq 0x2110
leaq 0x2251(%rip), %rdx      # 0xb21a
movl %r14d, %edi
movq %r15, %rsi
xorl %eax, %eax
callq 0x2110
leaq 0x3078(%rip), %rsi      # 0xc055
movl %r14d, %edi
xorl %eax, %eax
callq 0x2110
addq $0x2, %rbx
leaq 0x2ebc(%rip), %rsi      # 0xbeae
leaq 0x2ec6(%rip), %rdx      # 0xbebf
movl %r14d, %edi
movq %rbx, %rcx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2110
// File: /workspace/github_c_makefile_star2_O3/MaoKo[P]FGFX/fgfl/src/gen_dfa.c
// Function: gen_token_name
void
gen_token_name(int filde, lexical_spec_t const* spec, char const* header) {
    PRINT_IF_0(filde);
    size_t size_entry = SIZE_VECTOR(spec->entry_vect);

    dprintf(filde, STATIC SP CHAR SP CONST STAR NL);
    gen_verbatim_file(filde, header);

    dprintf(filde, SEP "token_name_table[%zu] = " BEG_BLOCK NL, size_entry + 2);
    for (size_t i = 0; i < size_entry; ++i) {
        spec_entry_t* crt_entry = (spec_entry_t*)AT_VECTOR(spec->entry_vect, i);
        dprintf(filde, TAB "\"%s\"" COMMA NL, crt_entry->name);
    }

    dprintf(filde, TAB "\"ERROR\"" COMMA NL);
    dprintf(filde, TAB "\"EOF\"" COMMA NL);

    dprintf(filde, END_BLOCK SEMI NL NL);
    PRINT_END_IF(filde);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r14
movl %edi, %ebx
leaq 0x2e9a(%rip), %rsi      # 0xbecb
xorl %eax, %eax
callq 0x2110
movq 0x8(%r14), %rax
movq 0x10(%rax), %r12
leaq 0x2e8c(%rip), %rsi      # 0xbed3
movl %ebx, %edi
xorl %eax, %eax
callq 0x2110
movl %ebx, %edi
movq %r15, %rsi
callq 0x3eea
leaq 0x2(%r12), %rdx
leaq 0x2e81(%rip), %rsi      # 0xbee7
movl %ebx, %edi
xorl %eax, %eax
callq 0x2110
testq %r12, %r12
je 0x90a1
leaq 0x2e88(%rip), %r15      # 0xbf03
xorl %r13d, %r13d
movq 0x8(%r14), %rax
movq (%rax), %rax
movq (%rax,%r13,8), %rax
movq 0x10(%rax), %rdx
movl %ebx, %edi
movq %r15, %rsi
xorl %eax, %eax
callq 0x2110
incq %r13
cmpq %r13, %r12
jne 0x907e
leaq 0x2e63(%rip), %rsi      # 0xbf0b
movl %ebx, %edi
xorl %eax, %eax
callq 0x2110
leaq 0x2e5e(%rip), %rsi      # 0xbf16
movl %ebx, %edi
xorl %eax, %eax
callq 0x2110
leaq 0x2f8d(%rip), %rsi      # 0xc055
movl %ebx, %edi
xorl %eax, %eax
callq 0x2110
leaq 0x2e47(%rip), %rsi      # 0xbf1f
movl %ebx, %edi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2110
// File: /workspace/github_c_makefile_star2_O3/MaoKo[P]FGFX/fgfl/src/gen_dfa.c
// Function: gen_ahead_table
void
gen_ahead_table(int filde, lexical_spec_t const* spec,
                            char const* header, spec_entry_t const* state) {
    bool first_seen = false;
    size_t size_states = SIZE_VECTOR(spec->states);

    for (size_t i = 1; i < size_states; ++i) {
        dfa_state_t* crt_state = (dfa_state_t*)AT_VECTOR(spec->states, i);
        if (!crt_state->must_ahead)
            { continue; }
        else if (!first_seen) {
            dprintf(filde, STATIC SP "uint8_t" NL);
            gen_verbatim_file(filde, header);

            dprintf(filde, SEP);
            gen_state_name(filde, state);

            dprintf(filde, "ahead_table[%zu][2] = " BEG_BLOCK NL, size_states);
            first_seen = true;
        }
        dprintf(filde, TAB "[%ld]" SP "=" SP BEG_BLOCK SP "true" COMMA SP
                        "%s" COMMA SP END_BLOCK COMMA NL, i,
                        (crt_state->must_reload) ? SP "true" : "false");
    }
    if (first_seen)
        { dprintf(filde, END_BLOCK SEMI NL NL); }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, -0x48(%rbp)
movq 0x28(%rsi), %rax
movq 0x10(%rax), %r13
cmpq $0x2, %r13
jb 0x93c3
movl %edi, %ebx
movq %rcx, -0x40(%rbp)
movl $0x1, %r15d
movl $0x0, -0x2c(%rbp)
leaq 0x1c75(%rip), %r14      # 0xaf46
movq %rsi, -0x50(%rbp)
movq %r13, -0x38(%rbp)
movq 0x28(%rsi), %rax
movq (%rax), %rax
movq (%rax,%r15,8), %r12
cmpb $0x1, 0x20(%r12)
jne 0x9393
testb $0x1, -0x2c(%rbp)
jne 0x9366
movl %ebx, %edi
leaq 0x2c6a(%rip), %rsi      # 0xbf69
xorl %eax, %eax
callq 0x2110
movl %ebx, %edi
movq -0x48(%rbp), %rsi
callq 0x3eea
movl %ebx, %edi
movq %r14, %r13
movq %r14, %rsi
xorl %eax, %eax
callq 0x2110
leaq 0x2dce(%rip), %rdx      # 0xc0f5
movq %rdx, %rcx
movq -0x40(%rbp), %rax
testq %rax, %rax
je 0x933a
movq 0x10(%rax), %rdx
movq %r13, %rcx
movl %ebx, %edi
leaq 0x2d3b(%rip), %rsi      # 0xc07e
xorl %eax, %eax
callq 0x2110
movl %ebx, %edi
leaq 0x2c26(%rip), %rsi      # 0xbf79
movq -0x38(%rbp), %r13
movq %r13, %rdx
xorl %eax, %eax
callq 0x2110
movb $0x1, %al
movl %eax, -0x2c(%rbp)
cmpb $0x0, 0x21(%r12)
leaq 0x2c38(%rip), %rcx      # 0xbfab
jne 0x937c
leaq 0x2c35(%rip), %rcx      # 0xbfb1
movl %ebx, %edi
leaq 0x2c0d(%rip), %rsi      # 0xbf92
movq %r15, %rdx
xorl %eax, %eax
callq 0x2110
movq -0x50(%rbp), %rsi
incq %r15
cmpq %r15, %r13
jne 0x92d9
testb $0x1, -0x2c(%rbp)
je 0x93c3
leaq 0x2ca9(%rip), %rsi      # 0xc055
movl %ebx, %edi
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2110
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/test-parsing.c
// Function: main
int main(int argc, char **argv)
{
	struct symbol_list * list;
	struct string_list * filelist = NULL;
	char *file;

	list = sparse_initialize(argc, argv, &filelist);

	// Simplification
	clean_up_symbols(list);

#if 1
	show_symbol_list(list);
	printf("\n\n");
#endif

	FOR_EACH_PTR(filelist, file) {
		list = sparse(file);

		// Simplification
		clean_up_symbols(list);

#if 1
		// Show the end result.
		show_symbol_list(list);
		printf("\n\n");
#endif
	} END_FOR_EACH_PTR(file);

#if 0
	// And show the allocation statistics
	show_ident_alloc();
	show_token_alloc();
	show_symbol_alloc();
	show_expression_alloc();
	show_statement_alloc();
	show_string_alloc();
	show_bytes_alloc();
#endif
	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
leaq 0x8(%rsp), %rbx
movq $0x0, (%rbx)
movq %rbx, %rdx
callq 0x11df2
movq %rax, %r14
movq %rax, %rdi
callq 0xea6d
movq %r14, %rdi
callq 0x1ce47
leaq 0x321e4(%rip), %rdi     # 0x40bcb
callq 0xe0a0
movq (%rbx), %r15
testq %r15, %r15
je 0xea5d
leaq 0x321d0(%rip), %rbx     # 0x40bcb
movq %r15, %r12
movzwl (%r12), %eax
testb %al, %al
jle 0xea53
xorl %r13d, %r13d
movq 0x18(%r12,%r13,8), %rdi
movzwl %ax, %ecx
cmpl $0x100, %ecx            # imm = 0x100
jb 0xea1f
testq %rdi, %rdi
je 0xea44
callq 0x1212a
movq %rax, %r14
movq %rax, %rdi
callq 0xea6d
movq %r14, %rdi
callq 0x1ce47
movq %rbx, %rdi
callq 0xe0a0
movzwl (%r12), %eax
incq %r13
movzwl %ax, %ecx
movsbq %cl, %rcx
cmpq %rcx, %r13
jl 0xea0a
movq 0x10(%r12), %r12
cmpq %r15, %r12
jne 0xe9fe
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/test-parsing.c
// Function: clean_up_symbols
static void clean_up_symbols(struct symbol_list *list)
{
	struct symbol *sym;

	FOR_EACH_PTR(list, sym) {
		expand_symbol(sym);
	} END_FOR_EACH_PTR(sym);
}

// Assembly:
testq %rdi, %rdi
je 0xeac3
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq %rdi, %r14
movzwl (%r14), %eax
testb %al, %al
jle 0xeab5
xorl %r15d, %r15d
movq 0x18(%r14,%r15,8), %rdi
movzwl %ax, %ecx
cmpl $0x100, %ecx            # imm = 0x100
jb 0xea9d
testq %rdi, %rdi
je 0xeaa6
callq 0xed5c
movzwl (%r14), %eax
incq %r15
movzwl %ax, %ecx
movsbq %cl, %rcx
cmpq %rcx, %r15
jl 0xea88
movq 0x10(%r14), %r14
cmpq %rbx, %r14
jne 0xea7d
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/vi[P]simple_cbor_stream_parse/scsp_cpp.cpp
// Function: scsp::parse_from_istream(std::istream&, scsp::Callbacks&)
bool SCSP_EXPORT parse_from_istream(
            std::istream& is,
            class Callbacks& callbacks)
{
    struct scsp_state     ss;
    ss.cur_depth = 0;
    uint8_t buf[8192];
    
    size_t read_cursor = 0;
    for(;;) {
        if (is.eof()) {
            if (read_cursor == 0) {
                return true;
            } else {
                return false;
            }
        }
        if (is.fail()) {
            return false;
        }
        is.read((char*)(buf+read_cursor), (sizeof buf) - read_cursor);
        size_t len = is.gcount();
       
        if (len == 0) {
            continue;
        }
        
        len += read_cursor;
        read_cursor=0;
        
        size_t write_cursor = 0;
        while(write_cursor < len) {
            int ret2 = scsp_parse_lowlevel(&ss, &tocpp_callbacks, (void*)&callbacks, buf+write_cursor, len-write_cursor);
            if (ret2 == -1) {
                return false;
            }
            if (ret2 == 0) {
                memmove(buf, buf+write_cursor, len-write_cursor);
                read_cursor = len-write_cursor;
                break;
            }
            write_cursor += ret2;
        }
        //fflush(stdout);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2118, %rsp           # imm = 0x2118
movq $0x0, 0x8(%rsp)
movq (%rdi), %rax
movq -0x18(%rax), %rax
movl 0x20(%rdi,%rax), %ecx
movb $0x1, %al
testb $0x2, %cl
jne 0x2431
movq %rsi, %rbx
movq %rdi, %r14
xorl %ebp, %ebp
testb $0x5, %cl
jne 0x242f
leaq (%rsp,%rbp), %rsi
addq $0x110, %rsi            # imm = 0x110
movl $0x2000, %edx           # imm = 0x2000
subq %rbp, %rdx
movq %r14, %rdi
callq 0x20d0
movq 0x8(%r14), %r15
testq %r15, %r15
je 0x2412
addq %rbp, %r15
je 0x23fb
xorl %r12d, %r12d
leaq (%rsp,%r12), %r13
addq $0x110, %r13            # imm = 0x110
movq %r15, %rbp
subq %r12, %rbp
leaq 0x8(%rsp), %rdi
leaq 0x3cd6(%rip), %rsi      # 0x60b0
movq %rbx, %rdx
movq %r13, %rcx
movq %rbp, %r8
callq 0x2840
cmpl $-0x1, %eax
je 0x242f
testl %eax, %eax
je 0x23ff
cltq
addq %rax, %r12
cmpq %r15, %r12
jb 0x23bd
xorl %ebp, %ebp
jmp 0x2412
leaq 0x110(%rsp), %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x2130
movq (%r14), %rax
movq -0x18(%rax), %rax
movl 0x20(%r14,%rax), %ecx
testb $0x2, %cl
je 0x2388
testq %rbp, %rbp
sete %al
jmp 0x2431
xorl %eax, %eax
addq $0x2118, %rsp           # imm = 0x2118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop