LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/SimpleButNotNaive[P]AES/aes_abstract.cpp
// Function: aes_abstract::AddRoundKey()
void aes_abstract::AddRoundKey() {
    //表示第current_round轮的密钥轮加，从0开始
    for (int k = 0; k < 4; k++) {
        uint32 current_key = round_key[4 * current_round + k];
        state[0][k] = state[0][k] ^ (uint8)(current_key >> 24);
        state[1][k] = state[1][k] ^ (uint8)((current_key & 0x00ff0000) >> 16);
        state[2][k] = state[2][k] ^ (uint8)((current_key & 0x0000ff00) >> 8);
        state[3][k] = state[3][k] ^ (uint8)(current_key);
    }
    current_round++;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
movslq 0xc0(%rdi), %rcx
leaq (%rax,%rcx,4), %rcx
movl 0x10(%rdi,%rcx,4), %ecx
movl %ecx, %edx
shrl $0x18, %edx
xorb %dl, (%rdi,%rax)
movl %ecx, %edx
shrl $0x10, %edx
xorb %dl, 0x4(%rdi,%rax)
movl %ecx, %edx
shrl $0x8, %edx
xorb %dl, 0x8(%rdi,%rax)
xorb %cl, 0xc(%rdi,%rax)
incq %rax
cmpq $0x4, %rax
jne 0x1422
incl 0xc0(%rdi)
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/SimpleButNotNaive[P]AES/aes_abstract.cpp
// Function: aes_abstract::MixColumns()
void aes_abstract::MixColumns() {
    uint8 new_state[4][4];
    for (int i = 0; i < 4; i++) {
        for (int j = 0; j < 4; j++) {
            uint8 n = 0;
            for (int k = 0; k < 4; k++) {
                n ^= FieldMul(mix_column_matrix[i][k], state[k][j]);
            }
            new_state[i][j] = n;
        }
    }

    for (int i = 0; i < 4; i++) {
        for (int j = 0; j < 4; j++) {
            state[i][j] = new_state[i][j];
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
xorl %eax, %eax
leaq 0x3cfe(%rip), %rcx      # 0x51d0
leaq (%rcx,%rax,4), %rdx
leaq -0x40(,%rax,4), %rsi
addq %rbp, %rsi
xorl %r8d, %r8d
xorl %r9d, %r9d
xorl %r10d, %r10d
movb (%r9,%rdx), %r11b
leaq (%rdi,%r9,4), %rbx
movb (%r8,%rbx), %r14b
movl $0x8, %r15d
xorl %ebx, %ebx
movl %r14d, %r12d
andb $0x1, %r12b
negb %r12b
andb %r11b, %r12b
xorb %r12b, %bl
leal (%r11,%r11), %r12d
movzbl %r12b, %r13d
xorb $0x1b, %r12b
testb %r11b, %r11b
movzbl %r12b, %r11d
cmovnsl %r13d, %r11d
shrb %r14b
decl %r15d
jne 0x14fe
xorb %bl, %r10b
incq %r9
cmpq $0x4, %r9
jne 0x14ea
movb %r10b, (%r8,%rsi)
incq %r8
cmpq $0x4, %r8
jne 0x14e4
incq %rax
cmpq $0x4, %rax
jne 0x14d2
xorl %eax, %eax
movl -0x40(%rbp,%rax,4), %ecx
movl %ecx, (%rdi,%rax,4)
incq %rax
cmpq $0x4, %rax
jne 0x1551
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/SimpleButNotNaive[P]AES/aes_abstract.cpp
// Function: aes_abstract::FieldMul(unsigned char, unsigned char)
uint8 aes_abstract::FieldMul(uint8 a, uint8 b) {
    // 有限域上两者相乘，计算乘积，a为被乘数，b为乘数
    uint8 result = 0;
    uint8 most_significant_bit = 0;
    for (int i = 0; i < 8; i++) {
        if (b & 0x01) {
            result = result ^ a;
        }
        most_significant_bit = 0x80 & a;
        a = a << 1;
        if (most_significant_bit != 0) {
            a = a ^ 0x1b;
        }
        b = b >> 1;
    }
    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl $0x8, %ecx
xorl %eax, %eax
movl %edx, %edi
andb $0x1, %dil
negb %dil
andb %sil, %dil
xorb %dil, %al
leal (%rsi,%rsi), %edi
movzbl %dil, %r8d
xorb $0x1b, %dil
testb %sil, %sil
movzbl %dil, %esi
cmovnsl %r8d, %esi
shrb %dl
decl %ecx
jne 0x1577
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/SimpleButNotNaive[P]AES/aes_abstract.cpp
// Function: aes_abstract::KeyExpansion(unsigned int*)
void aes_abstract::KeyExpansion(uint32 initial_key[4]) {
    // 将初始的密钥分为四个字，密钥拓展为44个字
    int i;
    for (i = 0; i <= 3; i++) {
        this->round_key[i] = initial_key[i];
    }

    for (; i <= 43; i++) {
        uint32 temp = round_key[i - 1];
        if (i % 4 == 0) {
            temp = SubWord(RotWord(temp)) ^ r_cont[i / 4 - 1];
        }
        this->round_key[i] = this->round_key[i - 4] ^ temp;
    }
}

// Assembly:
xorl %eax, %eax
movl (%rsi,%rax,4), %ecx
movl %ecx, 0x10(%rdi,%rax,4)
incq %rax
cmpq $0x4, %rax
jne 0x15b0
pushq %rbp
movq %rsp, %rbp
movl $0x4, %eax
leaq 0x3b00(%rip), %rcx      # 0x50d0
leaq 0x3d19(%rip), %rdx      # 0x52f0
movl 0xc(%rdi,%rax,4), %esi
testb $0x3, %al
jne 0x161a
roll $0x8, %esi
movl %esi, -0x4(%rbp)
xorl %esi, %esi
movzbl -0x4(%rbp,%rsi), %r8d
movl %r8d, %r9d
andl $0xf, %r9d
andl $-0x10, %r8d
addq %rcx, %r8
movb (%r9,%r8), %r8b
movb %r8b, -0x4(%rbp,%rsi)
incq %rsi
cmpq $0x4, %rsi
jne 0x15e7
movl %eax, %esi
shrl $0x2, %esi
decl %esi
movl (%rdx,%rsi,4), %esi
xorl -0x4(%rbp), %esi
xorl (%rdi,%rax,4), %esi
movl %esi, 0x10(%rdi,%rax,4)
incq %rax
cmpq $0x2c, %rax
jne 0x15d7
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/SimpleButNotNaive[P]AES/aes_abstract.cpp
// Function: aes_abstract::SubWord(unsigned int)
uint32 aes_abstract::SubWord(uint32 w) {
    uint8* byte_array = (uint8*)&w;
    for (int i = 0; i < 4; i++) {
        uint8 one_char = byte_array[i];
        byte_array[i] = SubByte(byte_array[i]);
    }
    return w;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %esi, -0x4(%rbp)
xorl %eax, %eax
leaq 0x3a94(%rip), %rcx      # 0x50d0
movzbl -0x4(%rbp,%rax), %edx
movl %edx, %esi
andl $0xf, %esi
andl $-0x10, %edx
addq %rcx, %rdx
movb (%rsi,%rdx), %dl
movb %dl, -0x4(%rbp,%rax)
incq %rax
cmpq $0x4, %rax
jne 0x163c
movl -0x4(%rbp), %eax
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/SimpleButNotNaive[P]AES/aes_abstract.cpp
// Function: aes_abstract::generate_roundkey(unsigned char*)
void aes_abstract::generate_roundkey(uint8 initial_key_byte[16]) {
    uint32 initial_key_word[4];
    for (int i = 0; i < 4; i++) {
        initial_key_word[i] = bytes_to_word(&initial_key_byte[4 * i]);
    }

    KeyExpansion(initial_key_word);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
xorl %eax, %eax
movl (%rsi,%rax,4), %ecx
bswapl %ecx
movl %ecx, -0x10(%rbp,%rax,4)
incq %rax
cmpq $0x4, %rax
jne 0x1678
leaq -0x10(%rbp), %rsi
callq 0x15ae
addq $0x10, %rsp
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/SimpleButNotNaive[P]AES/aes_abstract.cpp
// Function: aes_abstract::print_state()
void aes_abstract::print_state(){
    printf("The current state:\n");
    for(int i = 0;i < 4;i++){
        for(int j = 0;j < 4;j++){
            printf("%x ", state[i][j]);
        }
        printf("\n");
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x18ad(%rip), %rdi      # 0x3020
callq 0x1120
leaq 0x189d(%rip), %r14      # 0x301c
xorl %r15d, %r15d
xorl %r12d, %r12d
movzbl (%rbx,%r12), %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x1040
incq %r12
cmpq $0x4, %r12
jne 0x1785
movl $0xa, %edi
callq 0x1100
incq %r15
addq $0x4, %rbx
cmpq $0x4, %r15
jne 0x1782
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O1/SimpleButNotNaive[P]AES/decryptor.cpp
// Function: aes_decryptor::reverse_round_key()
void aes_decryptor::reverse_round_key() {
    int i = 0, j = 10;
    uint32 temp;
    while (i < j) {
        for(int k = 0;k < 4;k++){
            swap(round_key[4*i + k], round_key[4*j + k]);
        }
        i++;
        j--;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x10(%rdi), %rax
addq $0xb0, %rdi
xorl %ecx, %ecx
xorl %edx, %edx
movl (%rax,%rdx,4), %esi
movl (%rdi,%rdx,4), %r8d
movl %r8d, (%rax,%rdx,4)
movl %esi, (%rdi,%rdx,4)
incq %rdx
cmpq $0x4, %rdx
jne 0x1a03
incq %rcx
addq $0x10, %rax
addq $-0x10, %rdi
cmpq $0x5, %rcx
jne 0x1a01
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/SimpleButNotNaive[P]AES/decryptor.cpp
// Function: aes_decryptor::decrypt_one_group(unsigned char*)
void aes_decryptor::decrypt_one_group(uint8 cipher[16]) {
    current_round = 0;
    for (int i = 0; i < 16; i++) {
        state[i % 4][i / 4] = cipher[i];
    }

    AddRoundKey();
    for (int i = 1; i < NROUND; i++) {
        ShiftRows();
        SubBytes();
        AddRoundKey();
        MixColumns();
    }

    ShiftRows();
    SubBytes();
    AddRoundKey();

    for (int i = 0; i < 16; i++) {
        cipher[i] = state[i % 4][i / 4];
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
movl $0x0, 0xc0(%rdi)
xorl %eax, %eax
movb (%rsi,%rax), %cl
movl %eax, %edx
andl $0x3, %edx
movl %eax, %edi
shrl $0x2, %edi
leaq (%r14,%rdx,4), %rdx
movb %cl, (%rdi,%rdx)
incq %rax
cmpq $0x10, %rax
jne 0x1a4e
movq %rsi, -0x30(%rbp)
movq %r14, %rdi
callq 0x141c
leaq 0x4(%r14), %rax
movq %rax, -0x40(%rbp)
leaq 0x5(%r14), %rax
movq %rax, -0x38(%rbp)
leaq 0xc(%r14), %rbx
leaq 0xd(%r14), %r12
movl $0x1, %r13d
leaq 0x3744(%rip), %r15      # 0x51e0
movb 0x7(%r14), %al
movq -0x40(%rbp), %rdx
movzwl (%rdx), %ecx
movb 0x2(%rdx), %dl
movq -0x38(%rbp), %rsi
movb %dl, 0x2(%rsi)
movw %cx, (%rsi)
movb %al, 0x4(%r14)
roll $0x10, 0x8(%r14)
movb 0xc(%r14), %al
movzwl (%r12), %ecx
movb 0x2(%r12), %dl
movb %dl, 0x2(%rbx)
movw %cx, (%rbx)
movb %al, 0xf(%r14)
movq %r14, %rax
xorl %ecx, %ecx
xorl %edx, %edx
movzbl (%rax,%rdx), %esi
movl %esi, %edi
andl $0xf, %edi
andl $-0x10, %esi
addq %r15, %rsi
movb (%rdi,%rsi), %sil
movb %sil, (%rax,%rdx)
incq %rdx
cmpq $0x4, %rdx
jne 0x1adc
incq %rcx
addq $0x4, %rax
cmpq $0x4, %rcx
jne 0x1ada
movq %r14, %rdi
callq 0x141c
movq %r14, %rdi
callq 0x1c6e
incl %r13d
cmpl $0xa, %r13d
jne 0x1a9c
movb 0x7(%r14), %al
movb 0x6(%r14), %cl
movzwl 0x4(%r14), %edx
movw %dx, 0x5(%r14)
movb %cl, 0x7(%r14)
movb %al, 0x4(%r14)
movzwl 0x8(%r14), %eax
movzwl 0xa(%r14), %ecx
movw %cx, 0x8(%r14)
movw %ax, 0xa(%r14)
movb 0xc(%r14), %al
movzwl 0xd(%r14), %ecx
movw %cx, 0xc(%r14)
movb 0xf(%r14), %cl
movb %cl, 0xe(%r14)
movb %al, 0xf(%r14)
xorl %eax, %eax
movq %r14, %rcx
xorl %edx, %edx
movzbl (%rcx,%rdx), %esi
movl %esi, %edi
andl $0xf, %edi
andl $-0x10, %esi
addq %r15, %rsi
movb (%rdi,%rsi), %sil
movb %sil, (%rcx,%rdx)
incq %rdx
cmpq $0x4, %rdx
jne 0x1b75
incq %rax
addq $0x4, %rcx
cmpq $0x4, %rax
jne 0x1b73
movq %r14, %rdi
callq 0x141c
xorl %eax, %eax
movq -0x30(%rbp), %rsi
movl %eax, %ecx
andl $0x3, %ecx
movl %eax, %edx
shrl $0x2, %edx
leaq (%r14,%rcx,4), %rcx
movb (%rdx,%rcx), %cl
movb %cl, (%rsi,%rax)
incq %rax
cmpq $0x10, %rax
jne 0x1bb0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/SimpleButNotNaive[P]AES/decryptor.cpp
// Function: aes_decryptor::splice(unsigned char*, unsigned char*)
void aes_decryptor::splice(uint8* p_text_array, uint8 group[16]){
    static int cursor = 0;
    for(int i = 0;i < 16;i++){
        p_text_array[cursor] = group[i];
        cursor++;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq 0x373d(%rip), %rcx      # 0x5324
movl %ecx, %eax
addq %rcx, %rsi
xorl %ecx, %ecx
movb (%rdx,%rcx), %dil
movb %dil, (%rsi,%rcx)
incq %rcx
cmpq $0x10, %rcx
jne 0x1bee
addl %ecx, %eax
movl %eax, 0x371d(%rip)      # 0x5324
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/SimpleButNotNaive[P]AES/decryptor.cpp
// Function: aes_decryptor::MixColumns()
void aes_decryptor::MixColumns() {
    uint8 new_state[4][4];
    for (int i = 0; i < 4; i++) {
        for (int j = 0; j < 4; j++) {
            uint8 n = 0;
            for (int k = 0; k < 4; k++) {
                n ^= FieldMul(mix_column_matrix_inv[i][k], state[k][j]);
            }
            new_state[i][j] = n;
        }
    }

    for (int i = 0; i < 4; i++) {
        for (int j = 0; j < 4; j++) {
            state[i][j] = new_state[i][j];
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x3657(%rip), %r14      # 0x52e0
xorl %eax, %eax
movq %rax, -0x30(%rbp)
leaq -0x50(,%rax,4), %rax
addq %rbp, %rax
movq %rax, -0x38(%rbp)
movq %rbx, %r13
xorl %eax, %eax
movq %rax, -0x40(%rbp)
xorl %r12d, %r12d
xorl %r15d, %r15d
movzbl (%r14,%r12), %esi
movzbl (%r13,%r12,4), %edx
movq %rbx, %rdi
callq 0x156c
xorb %al, %r15b
incq %r12
cmpq $0x4, %r12
jne 0x1cad
movq -0x38(%rbp), %rax
movq -0x40(%rbp), %rcx
movb %r15b, (%rcx,%rax)
movq %rcx, %rax
incq %rax
incq %r13
cmpq $0x4, %rax
jne 0x1ca3
movq -0x30(%rbp), %rax
incq %rax
addq $0x4, %r14
cmpq $0x4, %rax
jne 0x1c8b
xorl %eax, %eax
movl -0x50(%rbp,%rax,4), %ecx
movl %ecx, (%rbx,%rax,4)
incq %rax
cmpq $0x4, %rax
jne 0x1cfa
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/SimpleButNotNaive[P]AES/encryptor.cpp
// Function: aes_encryptor::padding(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
string aes_encryptor::padding(string s) {
    char padding[17];
    int pad_size;
    if (s.size() % 16 == 0) {
        pad_size = 16;
    }
    else{
        pad_size = 16 - (s.size() - (s.size() / 16) * 16);
    }

    for(int i = 0;i < pad_size;i++){
        padding[i] = pad_size;
    }
    padding[pad_size] = '\0';

    return s + padding;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r15
movq %rdi, %rbx
movq 0x8(%rdx), %r14
movl %r14d, %eax
andl $0xf, %eax
movl $0x10, %ecx
movl $0x10, %r12d
subl %eax, %r12d
testb $0xf, %r14b
cmovel %ecx, %r12d
cmpl $0x1, %r12d
movl %r12d, %edx
adcl $0x0, %edx
leaq -0x40(%rbp), %r13
movq %r13, %rdi
movl %r12d, %esi
callq 0x1090
movb $0x0, -0x40(%rbp,%r12)
leaq 0x10(%rbx), %r12
movq %r12, (%rbx)
movq (%r15), %rsi
addq %rsi, %r14
movq %rbx, %rdi
movq %r14, %rdx
callq 0x2528
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1170
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x223a
movq (%r12), %rsi
incq %rsi
callq 0x10f0
movq %r14, %rdi
callq 0x1150
// File: /workspace/github_cpp_makefile_star2_O1/SimpleButNotNaive[P]AES/encryptor.cpp
// Function: aes_encryptor::split(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
vector<vector<uint8>> aes_encryptor::split(string s){
    int group_number = s.size() / 16;
    vector<vector<uint8>> ret;
    for(int i = 0;i < group_number;i++){
        vector<uint8> one_group;
        for(int j = 0;j < 16;j++){
            one_group.push_back(s[i * 16 + j]);
        }
        ret.push_back(one_group);
        one_group.clear();
    }
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq 0x8(%rdx), %rax
shrq $0x4, %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, -0x58(%rbp)
movq $0x0, 0x10(%rdi)
movq %rax, -0x60(%rbp)
testl %eax, %eax
jle 0x2310
movq %rdx, %r14
movq -0x60(%rbp), %rax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq %rax, -0x60(%rbp)
xorl %ebx, %ebx
leaq -0x50(%rbp), %r15
xorl %r13d, %r13d
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
movq $0x0, -0x40(%rbp)
xorl %r12d, %r12d
movq (%r14), %rax
addq %rbx, %rax
movb (%r12,%rax), %al
movb %al, -0x29(%rbp)
movq -0x48(%rbp), %rsi
cmpq -0x40(%rbp), %rsi
je 0x22c3
movb %al, (%rsi)
incq -0x48(%rbp)
jmp 0x22cf
movq %r15, %rdi
leaq -0x29(%rbp), %rdx
callq 0x28ca
incq %r12
cmpq $0x10, %r12
jne 0x22a4
movq -0x58(%rbp), %rdi
movq %r15, %rsi
callq 0x2482
movq -0x50(%rbp), %rdi
cmpq %rdi, -0x48(%rbp)
je 0x22f2
movq %rdi, -0x48(%rbp)
testq %rdi, %rdi
je 0x2303
movq -0x40(%rbp), %rsi
subq %rdi, %rsi
callq 0x10f0
incq %r13
addq $0x10, %rbx
cmpq -0x60(%rbp), %r13
jne 0x2292
movq -0x58(%rbp), %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2325
movq %rax, %r14
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x233d
movq -0x40(%rbp), %rsi
subq %rdi, %rsi
callq 0x10f0
movq -0x58(%rbp), %rdi
callq 0x24be
movq %r14, %rdi
callq 0x1150
// File: /workspace/github_cpp_makefile_star2_O1/SimpleButNotNaive[P]AES/encryptor.cpp
// Function: aes_encryptor::encrypt_one_group(unsigned char*)
void aes_encryptor::encrypt_one_group(uint8 p_text[16]) {
    current_round = 0;
    for (int i = 0; i < 16; i++) {
        state[i % 4][i / 4] = p_text[i];
    }
    AddRoundKey();

    for (int round = 1; round < NROUND; round++) {
        SubBytes();
        ShiftRows();
        MixColumns();
        AddRoundKey();
    }

    SubBytes();
    ShiftRows();
    AddRoundKey();

    for(int i = 0;i < 16;i++){
        p_text[i] = state[i % 4][i / 4];
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
movl $0x0, 0xc0(%rdi)
xorl %eax, %eax
movb (%rsi,%rax), %cl
movl %eax, %edx
andl $0x3, %edx
movl %eax, %edi
shrl $0x2, %edi
leaq (%r14,%rdx,4), %rdx
movb %cl, (%rdi,%rdx)
incq %rax
cmpq $0x10, %rax
jne 0x236e
movq %rsi, -0x30(%rbp)
movq %r14, %rdi
callq 0x141c
leaq 0x4(%r14), %rax
movq %rax, -0x38(%rbp)
leaq 0x5(%r14), %r12
leaq 0xc(%r14), %r13
leaq 0xd(%r14), %rbx
movl $0x9, %r15d
movq %r14, %rdi
callq 0x1460
movb 0x4(%r14), %al
movzwl (%r12), %ecx
movb 0x2(%r12), %dl
movq -0x38(%rbp), %rsi
movb %dl, 0x2(%rsi)
movw %cx, (%rsi)
movb %al, 0x7(%r14)
roll $0x10, 0x8(%r14)
movb 0xf(%r14), %al
movzwl (%r13), %ecx
movb 0x2(%r13), %dl
movb %dl, 0x2(%rbx)
movw %cx, (%rbx)
movb %al, 0xc(%r14)
movq %r14, %rdi
callq 0x14bc
movq %r14, %rdi
callq 0x141c
decl %r15d
jne 0x23b1
movq %r14, %rdi
callq 0x1460
movb 0x4(%r14), %al
movzwl 0x5(%r14), %ecx
movb 0x7(%r14), %dl
movb %dl, 0x6(%r14)
movw %cx, 0x4(%r14)
movb %al, 0x7(%r14)
roll $0x10, 0x8(%r14)
movb 0xf(%r14), %al
movb 0xe(%r14), %cl
movb %cl, 0xf(%r14)
movzwl 0xc(%r14), %ecx
movw %cx, 0xd(%r14)
movb %al, 0xc(%r14)
movq %r14, %rdi
callq 0x141c
xorl %eax, %eax
movq -0x30(%rbp), %rsi
movl %eax, %ecx
andl $0x3, %ecx
movl %eax, %edx
shrl $0x2, %edx
leaq (%r14,%rcx,4), %rcx
movb (%rdx,%rcx), %cl
movb %cl, (%rsi,%rax)
incq %rax
cmpq $0x10, %rax
jne 0x2455
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/JameyWoo[P]csmile/main.cpp
// Function: main
int main(int argc, char *argv[]) {
    if (argc != 2) {  // 判断参数, 给出用法提示
        cout << "Usage:" << endl;
        cout << "./main <file_name>" << endl;
        return 0;
    }
    read.open(string(argv[1]), ios::in);
    readin();
    scanning = true;
    bool printParse = true;
    TreeNode* root = parse(printParse);
    buildSymtab(root);
    typeCheck(root);
    codeGen(root);  // 目前只传递根节点进去, 暂时不写入文件
    genAssembly(root);  // 生成汇编代码
}

// Assembly:
pushq %rbx
subq $0x30, %rsp
cmpl $0x2, %edi
jne 0x300d
movq 0x8(%rsi), %rsi
leaq 0x10(%rsp), %rbx
leaq 0xf(%rsp), %rdx
movq %rbx, %rdi
callq 0x30ee
leaq 0x18279(%rip), %rdi     # 0x1b220
movq %rbx, %rsi
movl $0x8, %edx
callq 0x2180
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2fcf
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21c0
callq 0x31bc
leaq 0x181e5(%rip), %rax     # 0x1b1c0
movb $0x1, (%rax)
movl $0x1, %edi
callq 0x9885
movq %rax, %rbx
movq %rax, %rdi
callq 0x99f4
movq %rbx, %rdi
callq 0xa451
movq %rbx, %rdi
callq 0xe51d
movq %rbx, %rdi
callq 0x1357d
jmp 0x308a
movq 0x17fbc(%rip), %rbx     # 0x1afd0
leaq 0x11fe9(%rip), %rsi     # 0x15004
movl $0x6, %edx
movq %rbx, %rdi
callq 0x2220
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21a0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2120
leaq 0x11fb5(%rip), %rsi     # 0x1500b
movl $0x12, %edx
movq %rbx, %rdi
callq 0x2220
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21a0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2120
xorl %eax, %eax
addq $0x30, %rsp
popq %rbx
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x30b0
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O1/JameyWoo[P]csmile/scan.cpp
// Function: getNextChar(int&)
char getNextChar(int &line) {  // 获取下一个字符
    if (position >= cur_str.size()) {
        cur_str = words[++word_cnt];
        if (cur_str == "EOF") {
            scanning = false;
            return EOF;
        }
        cur_str += ' ';  // 默认加一个空格. 因为如果独立两行都没有空格的话, 会被合并
        position = 0;
    }
    position += 1;
    line = word_cnt;
    return cur_str[position - 1];
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x181c7(%rip), %rax     # 0x1b4b0
cmpq 0x18190(%rip), %rax     # 0x1b480
jb 0x334b
movslq 0x17ecb(%rip), %rsi     # 0x1b1c4
incq %rsi
movl %esi, 0x17ec2(%rip)     # 0x1b1c4
shlq $0x5, %rsi
addq 0x1818b(%rip), %rsi     # 0x1b498
leaq 0x18164(%rip), %r14     # 0x1b478
movq %r14, %rdi
callq 0x2100
leaq 0x11e6f(%rip), %rsi     # 0x15192
movq %r14, %rdi
callq 0x2090
testl %eax, %eax
je 0x3377
leaq 0x18142(%rip), %rdi     # 0x1b478
movl $0x20, %esi
callq 0x2170
movq $0x0, 0x18165(%rip) # 0x1b4b0
movq 0x1815e(%rip), %rax     # 0x1b4b0
leaq 0x1(%rax), %rcx
movq %rcx, 0x18153(%rip)     # 0x1b4b0
movl 0x17e61(%rip), %ecx     # 0x1b1c4
movl %ecx, (%rbx)
movq 0x1810c(%rip), %rcx     # 0x1b478
movb (%rcx,%rax), %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movb $0x0, 0x17e42(%rip)     # 0x1b1c0
movb $-0x1, %al
jmp 0x336f
// File: /workspace/github_cpp_makefile_star2_O1/JameyWoo[P]csmile/parse.cpp
// Function: match(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Token match(string expected) {
    Token tmp = ptoken;
    // cout << "ptoken.type = " << ptoken.type << " ptoken.val = " << ptoken.value << endl;
    // cout << "expected: " << expected << endl;
    // 匹配一个类型
    if (ptoken.type == expected) {
        // cout << "match: " << ptoken.value << endl;
        if (ptoken.type != "EndFile") ptoken = getToken();
    } else {
        error();
    }
    return tmp;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
movq %r15, (%rdi)
movq 0x16dff(%rip), %rsi     # 0x1b4c0
movq 0x16e00(%rip), %rdx     # 0x1b4c8
addq %rsi, %rdx
callq 0x3c5c
leaq 0x20(%rbx), %rdi
leaq 0x30(%rbx), %rax
movq %rax, 0x20(%rbx)
movq 0x16dfd(%rip), %rsi     # 0x1b4e0
movq 0x16dfe(%rip), %rdx     # 0x1b4e8
addq %rsi, %rdx
callq 0x3c5c
movl 0x16e08(%rip), %eax     # 0x1b500
movl %eax, 0x40(%rbx)
movq 0x16dc6(%rip), %rdx     # 0x1b4c8
cmpq 0x8(%r14), %rdx
jne 0x4720
testq %rdx, %rdx
je 0x4732
movq (%r14), %rsi
movq 0x16da9(%rip), %rdi     # 0x1b4c0
callq 0x21d0
testl %eax, %eax
je 0x4732
callq 0x4614
movq %rbx, %rax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x16d87(%rip), %rdi     # 0x1b4c0
leaq 0x109c1(%rip), %rsi     # 0x15101
callq 0x2090
testl %eax, %eax
je 0x4725
leaq 0x8(%rsp), %rdi
callq 0x338a
leaq 0x16d66(%rip), %rdi     # 0x1b4c0
leaq 0x8(%rsp), %rsi
callq 0x2240
leaq 0x28(%rsp), %r14
leaq 0x16d70(%rip), %rdi     # 0x1b4e0
movq %r14, %rsi
callq 0x2240
movl 0x20(%r14), %eax
movl %eax, 0x16d7e(%rip)     # 0x1b500
movq (%r14), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x479c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4725
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21c0
jmp 0x4725
jmp 0x47c2
movq %rax, %r14
movq %rbx, %rdi
callq 0x30b8
jmp 0x47e5
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x47e5
movq (%r15), %rsi
incq %rsi
callq 0x21c0
movq %r14, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O1/JameyWoo[P]csmile/parse.cpp
// Function: param_list(TreeNode*)
TreeNode* param_list(TreeNode* k) {
    // TODO: 到这里暂停, 明天再写. 完善函数的操作
    TreeNode* t = param(k);  // 先读一个参数
    TreeNode* p = t;
    k           = NULL;
    while (ptoken.type == "Comma") {  // 如果读到逗号, 说明还有下一个参数
        match("Comma");
        TreeNode* q = param(k);
        if (q != NULL) {
            if (t == NULL) {  // ! 是否多余
                t = p = q;
            } else {
                p->sibling = q;
                p          = q;
            }
        }
    }
    return t;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
callq 0x47ed
movq %rax, 0x8(%rsp)
leaq 0x16815(%rip), %rdi     # 0x1b4c0
leaq 0x104bc(%rip), %rsi     # 0x1516e
callq 0x2090
testl %eax, %eax
jne 0x4d73
leaq 0x20(%rsp), %r15
leaq 0x104a3(%rip), %r14     # 0x1516e
leaq 0x10(%rsp), %r12
leaq 0x167e9(%rip), %rbp     # 0x1b4c0
movq 0x8(%rsp), %r13
movq %r15, 0x10(%rsp)
movq %r12, %rdi
movq %r14, %rsi
leaq 0x10485(%rip), %rdx     # 0x15173
callq 0x312c
leaq 0x30(%rsp), %rdi
movq %r12, %rsi
callq 0x46a4
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x4d1c
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x4d38
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x4d4f
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21c0
xorl %edi, %edi
callq 0x47ed
movq %rax, %rbx
movq %rax, 0x20(%r13)
movq %rbp, %rdi
movq %r14, %rsi
callq 0x2090
movq %rbx, %r13
testl %eax, %eax
je 0x4cdc
movq 0x8(%rsp), %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x4da1
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O1/JameyWoo[P]csmile/parse.cpp
// Function: params()
TreeNode* params() {
    TreeNode* t = new TreeNode("Params");  // 根节点, 参数s
    TreeNode* p = NULL;
    if (ptoken.type == "void") {
        p = new TreeNode("void");
        match("void");
        if (ptoken.type == "RightBracket") {
            if (t != NULL) {
                t->child[0]  = p;
                t->child_cnt = 1;
            }
        } else {
            t->child[0]  = param_list(p);
            t->child_cnt = 1;
        }
    } else {
        t->child[0]  = param_list(p);
        t->child_cnt = 1;
    }
    return t;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl $0xe0, %edi
callq 0x21b0
movq %rax, %rbx
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1044f(%rip), %rsi     # 0x15223
leaq 0x1044e(%rip), %rdx     # 0x15229
leaq 0x20(%rsp), %rdi
callq 0x312c
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x995c
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x4e09
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x166b0(%rip), %rdi     # 0x1b4c0
leaq 0x103ff(%rip), %rsi     # 0x15216
callq 0x2090
testl %eax, %eax
je 0x4e27
xorl %edi, %edi
jmp 0x4f14
movl $0xe0, %edi
callq 0x21b0
movq %rax, %r14
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x103d1(%rip), %rsi     # 0x15216
leaq 0x103ce(%rip), %rdx     # 0x1521a
movq %rsp, %rdi
callq 0x312c
movq %rsp, %rsi
movq %r14, %rdi
callq 0x995c
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x4e75
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x50(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x10390(%rip), %rsi     # 0x15216
leaq 0x1038d(%rip), %rdx     # 0x1521a
leaq 0x40(%rsp), %r15
movq %r15, %rdi
callq 0x312c
leaq 0x60(%rsp), %rdi
movq %r15, %rsi
callq 0x46a4
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4ec8
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4ee3
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x40(%rsp), %rdi
cmpq %r12, %rdi
je 0x4efa
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x165bf(%rip), %rdi     # 0x1b4c0
leaq 0x10230(%rip), %rsi     # 0x15138
callq 0x2090
testl %eax, %eax
je 0x4f1c
movq %r14, %rdi
callq 0x4c8c
movq %rax, %r14
movq %r14, (%rbx)
movl $0x1, 0x28(%rbx)
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r15
movq 0x40(%rsp), %rdi
cmpq %r12, %rdi
je 0x4fa3
movq 0x50(%rsp), %rsi
incq %rsi
jmp 0x4f9e
movq %rax, %r15
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x4f6d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21c0
jmp 0x4f6d
movq %rax, %r15
movl $0xe0, %esi
movq %r14, %rdi
jmp 0x4f9e
movq %rax, %r15
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x4f96
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21c0
jmp 0x4f96
movq %rax, %r15
movl $0xe0, %esi
movq %rbx, %rdi
callq 0x21c0
movq %r15, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O1/JameyWoo[P]csmile/parse.cpp
// Function: statement_list()
TreeNode* statement_list() {
    /**
     * 一系列的语句
     */
    TreeNode* t = statement();
    TreeNode* p = t;
    // 判断哪些token可以做为statement的开始
    while (ptoken.type == "if" || ptoken.type == "Id" || ptoken.type == "while" ||
           ptoken.type == "return" || ptoken.type == "semicolon" || ptoken.type == "input" ||
           ptoken.type == "output") {
        TreeNode* q;
        // cout << "ptoken.type == " << ptoken.type << endl;
        q = statement();
        if (q != NULL) {
            if (t == NULL) {
                t = p = q;
            } else {
                p->sibling = q;
                p          = q;
            }
        }
    }
    return t;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
callq 0x7dde
leaq 0x14e78(%rip), %r14     # 0x1b4c0
leaq 0xebf0(%rip), %r15      # 0x1523f
leaq 0xebca(%rip), %r12      # 0x15220
leaq 0xeb1b(%rip), %r13      # 0x15178
leaq 0xeb1a(%rip), %rbp      # 0x1517e
leaq 0xec29(%rip), %rbx      # 0x15294
movq %rax, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x2090
testl %eax, %eax
je 0x66e6
movq %r14, %rdi
movq %r12, %rsi
callq 0x2090
testl %eax, %eax
je 0x66e6
movq %r14, %rdi
movq %r13, %rsi
callq 0x2090
testl %eax, %eax
je 0x66e6
movq %r14, %rdi
movq %rbp, %rsi
callq 0x2090
testl %eax, %eax
je 0x66e6
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2090
testl %eax, %eax
je 0x66e6
movq %r14, %rdi
leaq 0xeabb(%rip), %rsi      # 0x15185
callq 0x2090
testl %eax, %eax
je 0x66e6
movq %r14, %rdi
leaq 0xeaae(%rip), %rsi      # 0x1518b
callq 0x2090
testl %eax, %eax
jne 0x670a
callq 0x7dde
testq %rax, %rax
je 0x6675
cmpq $0x0, 0x8(%rsp)
je 0x666b
movq 0x10(%rsp), %rcx
movq %rax, 0x20(%rcx)
jmp 0x6670
movq 0x8(%rsp), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/JameyWoo[P]csmile/parse.cpp
// Function: args()
TreeNode* args() {
    TreeNode* t = new TreeNode("Args");
    TreeNode *s = NULL, *p = NULL;
    if (ptoken.type != "RightBracket") {
        s = expression();
        p = s;
        while (ptoken.type == "Comma") {
            TreeNode* q;
            match("Comma");
            q = expression();
            if (q != NULL) {
                if (s == NULL) {
                    s = p = q;
                } else {
                    p->sibling = q;
                    p          = q;
                }
            }
        }
    }
    if (s != NULL) {
        t->child[0] = s;
    }
    return t;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movl $0xe0, %edi
callq 0x21b0
movq %rax, %r15
leaq 0x40(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xe58e(%rip), %rsi      # 0x15251
leaq 0xe58b(%rip), %rdx      # 0x15255
leaq 0x30(%rsp), %rdi
callq 0x312c
leaq 0x30(%rsp), %rsi
movq %r15, %rdi
callq 0x995c
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x6cf8
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x147c1(%rip), %rdi     # 0x1b4c0
leaq 0xe432(%rip), %rsi      # 0x15138
callq 0x2090
testl %eax, %eax
movq %r15, 0x8(%rsp)
je 0x6d3b
callq 0x5f2f
movq %rax, %r15
leaq 0x1479d(%rip), %rdi     # 0x1b4c0
leaq 0xe444(%rip), %rsi      # 0x1516e
callq 0x2090
testl %eax, %eax
je 0x6d42
movq %r15, %rbx
jmp 0x6e09
xorl %ebx, %ebx
jmp 0x6e09
leaq 0x20(%rsp), %rbp
leaq 0xe420(%rip), %r14      # 0x1516e
leaq 0x10(%rsp), %r13
movq %r15, %rbx
movq %rbp, 0x10(%rsp)
movq %r13, %rdi
movq %r14, %rsi
leaq 0xe40b(%rip), %rdx      # 0x15173
callq 0x312c
leaq 0x50(%rsp), %rdi
movq %r13, %rsi
callq 0x46a4
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x6d9c
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x6db8
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6dcf
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21c0
callq 0x5f2f
testq %rax, %rax
je 0x6de7
movq %rax, %r12
testq %rbx, %rbx
je 0x6dec
movq %r12, 0x20(%r15)
jmp 0x6def
movq %r15, %r12
jmp 0x6def
movq %r12, %rbx
leaq 0x146ca(%rip), %rdi     # 0x1b4c0
movq %r14, %rsi
callq 0x2090
movq %r12, %r15
testl %eax, %eax
je 0x6d56
testq %rbx, %rbx
movq 0x8(%rsp), %rax
je 0x6e16
movq %rbx, (%rax)
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x6e47
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21c0
jmp 0x6e47
movq %rax, %rbx
movl $0xe0, %esi
movq %r15, %rdi
jmp 0x6e66
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6e6b
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O1/JameyWoo[P]csmile/parse.cpp
// Function: term(TreeNode*)
TreeNode* term(TreeNode* k) {
    TreeNode* t = factor(k);
    k           = NULL;
    while (ptoken.type == "MDOP") {
        TreeNode* q = new TreeNode("MDOp");
        q->op       = ptoken.value;
        q->child[0] = t;
        match(ptoken.type);
        q->child[1] = term(k);
        t           = q;
    }
    return t;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
callq 0x7120
movq %rax, %r14
leaq 0x13f0e(%rip), %rdi     # 0x1b4c0
leaq 0xdb6e(%rip), %rsi      # 0x15127
callq 0x2090
testl %eax, %eax
je 0x75ca
movq %r14, %rbx
jmp 0x76e0
leaq 0x30(%rsp), %r15
leaq 0x10(%rsp), %r13
leaq 0x20(%rsp), %r12
movq %rsp, %rbp
movl $0xe0, %edi
callq 0x21b0
movq %rax, %rbx
movq %r15, 0x20(%rsp)
movq %r12, %rdi
leaq 0xdc73(%rip), %rsi      # 0x1526b
leaq 0xdc70(%rip), %rdx      # 0x1526f
callq 0x312c
movq %rbx, %rdi
movq %r12, %rsi
callq 0x995c
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x7626
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rdi
addq $0x98, %rdi
leaq 0x13ea9(%rip), %rsi     # 0x1b4e0
callq 0x2100
movq %r14, (%rbx)
movq %r13, (%rsp)
movq 0x13e76(%rip), %rsi     # 0x1b4c0
movq 0x13e77(%rip), %rdx     # 0x1b4c8
addq %rsi, %rdx
movq %rbp, %rdi
callq 0x3c5c
leaq 0x40(%rsp), %rdi
movq %rbp, %rsi
callq 0x46a4
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x7685
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x76a1
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x21c0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x76b7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21c0
xorl %edi, %edi
callq 0x7592
movq %rax, 0x8(%rbx)
leaq 0x13df7(%rip), %rdi     # 0x1b4c0
leaq 0xda57(%rip), %rsi      # 0x15127
callq 0x2090
movq %rbx, %r14
testl %eax, %eax
je 0x75dc
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x7714
movq %rax, %r14
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x7714
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21c0
movl $0xe0, %esi
movq %rbx, %rdi
jmp 0x7732
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x7737
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %r14, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O1/JameyWoo[P]csmile/parse.cpp
// Function: additive_expression(TreeNode*)
TreeNode* additive_expression(TreeNode* k) {
    TreeNode* t = term(k);
    k           = NULL;
    while (ptoken.type == "PMOP") {  // 加减
        TreeNode* q = new TreeNode("PMOp");
        q->op       = ptoken.value;
        q->child[0] = t;
        match("PMOP");
        q->child[1] = term(k);
        t           = q;
    }
    return t;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
callq 0x7592
movq %rax, %r13
leaq 0x13d61(%rip), %rdi     # 0x1b4c0
leaq 0xd9bc(%rip), %rsi      # 0x15122
callq 0x2090
testl %eax, %eax
je 0x7777
movq %r13, %rbx
jmp 0x788e
leaq 0x30(%rsp), %r14
movq %rsp, %r12
leaq 0xd99c(%rip), %rbp      # 0x15122
leaq 0x20(%rsp), %r15
movl $0xe0, %edi
callq 0x21b0
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %r12, %rdi
leaq 0xdac5(%rip), %rsi      # 0x15270
leaq 0xdac2(%rip), %rdx      # 0x15274
callq 0x312c
movq %rbx, %rdi
movq %r12, %rsi
callq 0x995c
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x77dd
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rdi
addq $0x98, %rdi
leaq 0x13cf2(%rip), %rsi     # 0x1b4e0
callq 0x2100
movq %r13, (%rbx)
movq %r14, 0x20(%rsp)
movq %r15, %rdi
movq %rbp, %rsi
leaq 0xd91e(%rip), %rdx      # 0x15126
callq 0x312c
leaq 0x40(%rsp), %rdi
movq %r15, %rsi
callq 0x46a4
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x7836
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x7852
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x7869
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21c0
xorl %edi, %edi
callq 0x7592
movq %rax, 0x8(%rbx)
leaq 0x13c45(%rip), %rdi     # 0x1b4c0
movq %rbp, %rsi
callq 0x2090
movq %rbx, %r13
testl %eax, %eax
je 0x778b
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
jmp 0x78c6
movq %rax, %r15
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x78c6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21c0
movl $0xe0, %esi
movq %rbx, %rdi
jmp 0x78e5
movq %rax, %r15
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x78ea
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %r15, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O1/JameyWoo[P]csmile/parse.cpp
// Function: simple_expression(TreeNode*)
TreeNode* simple_expression(TreeNode* k) {
    // 这里会处理只有一个整数的情况
    TreeNode* t = additive_expression(k);
    k           = NULL;
    if (ptoken.type == "CompareOp") {  // 比较
        TreeNode* q = new TreeNode("CompareOp");
        q->line     = ptoken.line;
        q->op       = ptoken.value;
        q->child[0] = t;
        t           = q;
        match(ptoken.type);
        t->child[1] = additive_expression(k);
        return t;
    }
    return t;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x90, %rsp
callq 0x773f
movq %rax, %r14
leaq 0x13bb3(%rip), %rdi     # 0x1b4c0
leaq 0xd7f9(%rip), %rsi      # 0x1510d
callq 0x2090
testl %eax, %eax
je 0x7925
movq %r14, %rbx
jmp 0x7a25
movl $0xe0, %edi
callq 0x21b0
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xd7cb(%rip), %rsi      # 0x1510d
leaq 0xd7cd(%rip), %rdx      # 0x15116
leaq 0x8(%rsp), %rdi
callq 0x312c
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x995c
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x7977
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21c0
movl 0x13b83(%rip), %eax     # 0x1b500
movl %eax, 0x50(%rbx)
movq %rbx, %rdi
addq $0x98, %rdi
leaq 0x13b4f(%rip), %rsi     # 0x1b4e0
callq 0x2100
movq %r14, (%rbx)
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x13b17(%rip), %rsi     # 0x1b4c0
movq 0x13b18(%rip), %rdx     # 0x1b4c8
addq %rsi, %rdx
leaq 0x28(%rsp), %r14
movq %r14, %rdi
callq 0x3c5c
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
callq 0x46a4
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x79e8
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7a03
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x7a1a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21c0
xorl %edi, %edi
callq 0x773f
movq %rax, 0x8(%rbx)
movq %rbx, %rax
addq $0x90, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x7a78
movq 0x38(%rsp), %rsi
incq %rsi
jmp 0x7a73
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x7a6b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21c0
jmp 0x7a6b
movq %rax, %r14
movl $0xe0, %esi
movq %rbx, %rdi
callq 0x21c0
movq %r14, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O1/JameyWoo[P]csmile/parse.cpp
// Function: expression_stmt()
TreeNode* expression_stmt() {
    TreeNode* t = NULL;
    t           = expression();
    match("Semicolon");
    return t;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x70, %rsp
callq 0x5f2f
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xd404(%rip), %rsi      # 0x15145
leaq 0xd406(%rip), %rdx      # 0x1514e
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x312c
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x46a4
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7d7d
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7d98
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x7daf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x7dd6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O1/JameyWoo[P]csmile/parse.cpp
// Function: statement()
TreeNode* statement() {
    TreeNode* t = NULL;
    if (ptoken.type == "if") {
        t = selection_stmt();
    } else if (ptoken.type == "while") {
        t = iteration_stmt();
    } else if (ptoken.type == "return") {
        t = return_stmt();
    } else if (ptoken.type == "Id") {
        t = expression_stmt();
    } else if (ptoken.type == "intput" || ptoken.type == "output") {
        t = expression_stmt();
    }
    return t;
}

// Assembly:
pushq %rax
leaq 0x136da(%rip), %rdi     # 0x1b4c0
leaq 0xd452(%rip), %rsi      # 0x1523f
callq 0x2090
testl %eax, %eax
je 0x7e6d
leaq 0x136c3(%rip), %rdi     # 0x1b4c0
leaq 0xd374(%rip), %rsi      # 0x15178
callq 0x2090
testl %eax, %eax
je 0x7e73
leaq 0x136ac(%rip), %rdi     # 0x1b4c0
leaq 0xd363(%rip), %rsi      # 0x1517e
callq 0x2090
testl %eax, %eax
je 0x7e7f
leaq 0x13695(%rip), %rdi     # 0x1b4c0
leaq 0xd3ee(%rip), %rsi      # 0x15220
callq 0x2090
testl %eax, %eax
je 0x7e79
leaq 0x1367e(%rip), %rdi     # 0x1b4c0
leaq 0xd444(%rip), %rsi      # 0x1528d
callq 0x2090
testl %eax, %eax
je 0x7e79
leaq 0x13667(%rip), %rdi     # 0x1b4c0
leaq 0xd32b(%rip), %rsi      # 0x1518b
callq 0x2090
testl %eax, %eax
je 0x7e79
xorl %eax, %eax
popq %rcx
retq
popq %rax
jmp 0x5892
popq %rax
jmp 0x671e
popq %rax
jmp 0x7d20
popq %rax
jmp 0x7a80
// File: /workspace/github_cpp_makefile_star2_O1/JameyWoo[P]csmile/parse.cpp
// Function: compound_stmt()
TreeNode* compound_stmt() {                  // * 解析函数体
    TreeNode* t = new TreeNode("Compound");  // 函数体
    match("LeftBigBkt");
    t->child[0] = local_declaration();  // 声明都在前面, 以sibling连接
    t->child[1] = statement_list();     // 下面是各种语句, 以sibling连接
    if (t->child[0] == NULL) {
        t->child[0] = t->child[1];
        t->child[1] = NULL;
    }
    t->child_cnt = 2;
    match("RightBigBkt");
    return t;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xf0, %rsp
movl $0xe0, %edi
callq 0x21b0
movq %rax, %rbx
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xd3f0(%rip), %rsi      # 0x1529e
leaq 0xd3f1(%rip), %rdx      # 0x152a6
movq %rsp, %rdi
callq 0x312c
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x995c
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x7ede
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x50(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xd269(%rip), %rsi      # 0x15157
leaq 0xd26c(%rip), %rdx      # 0x15161
leaq 0x40(%rsp), %r14
movq %r14, %rdi
callq 0x312c
leaq 0xa8(%rsp), %rdi
movq %r14, %rsi
callq 0x46a4
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7f33
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7f54
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x7f6b
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x21c0
callq 0x4fab
movq %rax, (%rbx)
callq 0x662e
movq %rax, 0x8(%rbx)
cmpq $0x0, (%rbx)
jne 0x7f8d
movq %rax, (%rbx)
movq $0x0, 0x8(%rbx)
movl $0x2, 0x28(%rbx)
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xd1be(%rip), %rsi      # 0x15162
leaq 0xd1c2(%rip), %rdx      # 0x1516d
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x312c
leaq 0x60(%rsp), %rdi
movq %r14, %rsi
callq 0x46a4
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7fe6
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8001
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x8018
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rax
addq $0xf0, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x807e
movq 0x30(%rsp), %rsi
jmp 0x804e
movq %rax, %r14
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x807e
movq 0x50(%rsp), %rsi
incq %rsi
jmp 0x8079
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x8071
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21c0
jmp 0x8071
movq %rax, %r14
movl $0xe0, %esi
movq %rbx, %rdi
callq 0x21c0
movq %r14, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O1/JameyWoo[P]csmile/parse.cpp
// Function: declaration_list()
TreeNode* declaration_list() {
    /**
     * 不断检测声明
     * 包括函数声明和变量声明.
     */
    TreeNode* t = declaration();  // 检测一个声明
    TreeNode* p = t;
    // while (ptoken.type != "int" && ptoken.type != "void" && ptoken.type != "EndFile") {
    //     ptoken = getToken();
    //     if (ptoken.type == "EndFile") break;
    // }
    while (ptoken.type == "int" || ptoken.type == "void") {  // 检测到int整形, void函数
        // cout << "声明的类型 ................... : " << ptoken.type << endl;
        TreeNode* q;
        q = declaration();
        if (q != NULL) {
            if (t == NULL) {  // ! 似乎不正常, 前面t为NULL说明没有检测到decl, 可以报错
                t = p = q;
            } else {
                p->sibling = q;  // *每个声明是并列的, 用兄弟结点连接.
                p          = q;
            }
        }
    }
    match("EndFile");
    // cout << "hehe\n";
    return t;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x70, %rsp
callq 0x8086
movq %rax, %rbx
leaq 0x128fb(%rip), %r14     # 0x1b4c0
leaq 0xc5a8(%rip), %r15      # 0x15174
leaq 0xc643(%rip), %r12      # 0x15216
movq %rax, %r13
movq %r14, %rdi
movq %r15, %rsi
callq 0x2090
testl %eax, %eax
je 0x8bf4
movq %r14, %rdi
movq %r12, %rsi
callq 0x2090
testl %eax, %eax
jne 0x8bff
callq 0x8086
movq %rax, 0x20(%r13)
jmp 0x8bd3
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xc4f2(%rip), %rsi      # 0x15101
leaq 0xc4f2(%rip), %rdx      # 0x15108
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x312c
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x46a4
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8c4b
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8c66
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x8c7d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rax
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x8ca8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rdi
callq 0x2310