LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/disjukr[P]Tetris/./Tetromino.hh
// Function: Tetromino::Render(Screen&, int, int)
virtual void Render(Screen& screen, int x, int y) {
        for (int i = 0; i < size; ++i) {
            for (int j = 0; j < size; ++j) {
                int tx = i * 2 + x;
                int ty = j + y;
                if (this -> CheckBlock(i, j)) {
                    screen.FillCell(this -> color, tx, ty, true);
                    screen.FillCell(this -> color, tx + 1, ty, true);
                }
            }
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
movq %rsi, %r15
movq %rdi, %r12
xorl %r13d, %r13d
movq -0x38(%rbp), %rax
leal (%rax,%r13,2), %ecx
movl %ecx, -0x30(%rbp)
leal (%rax,%r13,2), %eax
incl %eax
movl %eax, -0x2c(%rbp)
xorl %r14d, %r14d
movq (%r12), %rax
movq %r12, %rdi
movl %r13d, %esi
movl %r14d, %edx
callq *0x28(%rax)
testb %al, %al
je 0x6321
movq -0x40(%rbp), %rax
leal (%rax,%r14), %ebx
movl 0x8(%r12), %esi
movq %r15, %rdi
movl -0x30(%rbp), %edx
movl %ebx, %ecx
movl $0x1, %r8d
callq 0x6af0
movl 0x8(%r12), %esi
movq %r15, %rdi
movl -0x2c(%rbp), %edx
movl %ebx, %ecx
movl $0x1, %r8d
callq 0x6af0
incl %r14d
cmpl $0x4, %r14d
jne 0x62d5
incl %r13d
cmpl $0x4, %r13d
jne 0x62be
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/disjukr[P]Tetris/./Tetromino.hh
// Function: TMino::CheckBlock(int, int)
virtual bool CheckBlock(int x, int y) {
        if (!Tetromino::CheckBlock(x, y))
            return false;
        if (y == 0 || x == 3 ||
            ((y == 1 || y == 3) && (x == 0 || x == 2)))
            return false;
        if (vertical) {
            if (x == 1 &&
                ((tail && y == 1) || (!tail && y == 3)))
                return false;
        }
        else {
            if (y == 2 &&
                ((tail && x == 0) || (!tail && x == 2)))
                return false;
        }
        return true;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edx, %eax
orl %esi, %eax
cmpl $0x3, %eax
ja 0x6458
testl %edx, %edx
sete %al
cmpl $0x3, %esi
sete %cl
orb %al, %cl
jne 0x6458
movl %edx, %eax
orl $0x2, %eax
cmpl $0x3, %eax
jne 0x645c
testb $0x1, %sil
jne 0x645c
xorl %eax, %eax
popq %rbp
retq
cmpb $0x1, 0x14(%rdi)
jne 0x647b
cmpl $0x1, %esi
jne 0x648d
movzbl 0x15(%rdi), %eax
xorl $0x1, %eax
leal 0x1(,%rax,2), %eax
cmpl %edx, %eax
je 0x6458
jmp 0x648d
cmpl $0x2, %edx
jne 0x648d
movzbl 0x15(%rdi), %eax
xorl $0x1, %eax
addl %eax, %eax
cmpl %esi, %eax
je 0x6458
movb $0x1, %al
jmp 0x645a
nop
// File: /workspace/github_cpp_makefile_star2_O3/disjukr[P]Tetris/./Tetromino.hh
// Function: SMino::CheckBlock(int, int)
virtual bool CheckBlock(int x, int y) {
        if (!Tetromino::CheckBlock(x, y))
            return false;
        if (y == 2 && (x == 1 || x == 2))
            return true;
        if (vertical)
            return (x == 1 && y == 1) || (x == 2 && y == 3);
        else
            return y == 3 && x < 2;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edx, %eax
orl %esi, %eax
cmpl $0x3, %eax
ja 0x6531
cmpl $0x2, %edx
sete %cl
leal -0x1(%rsi), %eax
cmpl $0x2, %eax
setb %r8b
movb $0x1, %al
testb %r8b, %cl
jne 0x6533
cmpb $0x1, 0x14(%rdi)
jne 0x6535
movl %esi, %ecx
xorl $0x1, %ecx
movl %edx, %edi
xorl $0x1, %edi
orl %ecx, %edi
je 0x6533
xorl $0x2, %esi
xorl $0x3, %edx
orl %esi, %edx
sete %al
jmp 0x6533
xorl %eax, %eax
popq %rbp
retq
cmpl $0x3, %edx
sete %cl
cmpl $0x2, %esi
setb %al
andb %cl, %al
jmp 0x6533
nop
// File: /workspace/github_cpp_makefile_star2_O3/disjukr[P]Tetris/./Tetromino.hh
// Function: JMino::CheckBlock(int, int)
virtual bool CheckBlock(int x, int y) {
        if (!Tetromino::CheckBlock(x, y))
            return false;
        if (vertical) {
            if (x == 1 && y > 0)
                return true;
            if (tail && x == 0 && y == 3)
                return true;
            if (!tail && x == 2 && y == 1)
                return true;
        }
        else {
            if (y == 2 && x < 3 )
                return true;
            if (!tail && x == 0 && y == 1)
                return true;
            if (tail && x == 2 && y == 3)
                return true;
        }
        return false;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edx, %eax
orl %esi, %eax
cmpl $0x3, %eax
ja 0x66ee
cmpb $0x1, 0x14(%rdi)
jne 0x66bb
cmpl $0x1, %esi
sete %cl
testl %edx, %edx
setne %r8b
movb $0x1, %al
testb %r8b, %cl
jne 0x66f0
movb 0x15(%rdi), %cl
movl %edx, %edi
xorl $0x3, %edi
orl %esi, %edi
sete %dil
testb %cl, %dil
jne 0x66f0
cmpl $0x1, %edx
jne 0x66ee
cmpl $0x2, %esi
jne 0x66ee
testb %cl, %cl
je 0x66f0
jmp 0x66ee
cmpl $0x2, %edx
sete %cl
cmpl $0x3, %esi
setb %r8b
movb $0x1, %al
testb %cl, %r8b
jne 0x66f0
movb 0x15(%rdi), %cl
cmpl $0x1, %edx
jne 0x66df
testl %esi, %esi
jne 0x66df
testb %cl, %cl
je 0x66f0
xorl $0x2, %esi
xorl $0x3, %edx
orl %esi, %edx
sete %dl
testb %cl, %dl
jne 0x66f0
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/disjukr[P]Tetris/Screen.cc
// Function: Screen::init(int, int)
void Screen::init(int width, int height) {
    this -> width = width;
    this -> height = height;
    this -> buffer = new Cell*[height];
    for (int i = 0; i < height; ++i) {
        buffer[i] = new Cell[width];
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %r15d
movq %rdi, %r14
movl %esi, -0x2c(%rbp)
movl %esi, (%rdi)
movl %edx, 0x4(%rdi)
movl %edx, %eax
movq %rax, -0x38(%rbp)
leaq (,%rax,8), %rdi
testl %edx, %edx
movq $-0x1, %rbx
cmovsq %rbx, %rdi
callq 0x3030
movq %rax, 0x8(%r14)
testl %r15d, %r15d
jle 0x68f5
movslq -0x2c(%rbp), %r15
movl $0xc, %ecx
movq %r15, %rax
mulq %rcx
movq %rax, %r12
seto %al
addq $0x8, %r12
cmovbq %rbx, %r12
testb %al, %al
cmovneq %rbx, %r12
leaq (,%r15,4), %rax
leaq (%rax,%rax,2), %rbx
xorl %r13d, %r13d
movq %r12, %rdi
callq 0x3030
movq %r15, (%rax)
cmpl $0x0, -0x2c(%rbp)
je 0x68e0
xorl %ecx, %ecx
movb $0x20, 0x8(%rax,%rcx)
movq $0x0, 0xc(%rax,%rcx)
addq $0xc, %rcx
cmpq %rcx, %rbx
jne 0x68c9
addq $0x8, %rax
movq 0x8(%r14), %rcx
movq %rax, (%rcx,%r13,8)
incq %r13
cmpq -0x38(%rbp), %r13
jne 0x68b6
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/disjukr[P]Tetris/Screen.cc
// Function: Screen::GetCell(int, int)
Cell* Screen::GetCell(int x, int y) {
    if (x < 0 || x >= this -> GetWidth() ||
        y < 0 || y >= this -> GetHeight())
        return &(this -> dummy);
    else
        return &(this -> buffer[y][x]);
}

// Assembly:
movq %rdi, %rax
testl %esi, %esi
js 0x69ca
testl %edx, %edx
js 0x69ca
cmpl %esi, (%rax)
jle 0x69ca
cmpl %edx, 0x4(%rax)
jle 0x69ca
pushq %rbp
movq %rsp, %rbp
movq 0x8(%rax), %rcx
movl %edx, %edx
movl %esi, %eax
leaq (%rax,%rax,2), %rax
shlq $0x2, %rax
addq (%rcx,%rdx,8), %rax
popq %rbp
retq
addq $0x10, %rax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/disjukr[P]Tetris/Screen.cc
// Function: Screen::FillCell(Color, int, int, bool)
void Screen::FillCell(Color color, int x, int y, bool background) {
    Cell* cell = this -> GetCell(x, y);
    if (background)
        cell -> background = color;
    else
        cell -> foreground = color;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testl %edx, %edx
js 0x6b1b
testl %ecx, %ecx
js 0x6b1b
cmpl %edx, (%rdi)
jle 0x6b1b
cmpl %ecx, 0x4(%rdi)
jle 0x6b1b
movq 0x8(%rdi), %rax
movl %ecx, %ecx
movl %edx, %edx
leaq (%rdx,%rdx,2), %rdi
shlq $0x2, %rdi
addq (%rax,%rcx,8), %rdi
jmp 0x6b1f
addq $0x10, %rdi
movzbl %r8b, %eax
movl %esi, 0x4(%rdi,%rax,4)
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/disjukr[P]Tetris/Screen.cc
// Function: Screen::FillLine(Color, int, int, int, bool)
void Screen::FillLine(Color color, int x, int y, int length, bool background) {
    for (int i = 0; i < length; ++i) {
        Cell* cell = this -> GetCell(x + i, y);
        if (background)
            cell -> background = color;
        else
            cell -> foreground = color;
    }
}

// Assembly:
testl %r8d, %r8d
jle 0x6ba0
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
movslq (%rdi), %rax
movq 0x8(%rdi), %r10
movl %ecx, %r11d
leaq 0x10(%rdi), %rbx
movslq %edx, %rdx
movl %r8d, %r8d
movzbl %r9b, %r9d
leaq 0x4(,%r9,4), %r9
leaq (,%rdx,4), %r14
leaq (%r14,%r14,2), %r14
movq %rbx, %r15
testq %rdx, %rdx
js 0x6b8a
movq %rbx, %r15
testl %ecx, %ecx
js 0x6b8a
movq %rbx, %r15
cmpq %rax, %rdx
jge 0x6b8a
movq %rbx, %r15
cmpl %ecx, 0x4(%rdi)
jle 0x6b8a
movq (%r10,%r11,8), %r15
addq %r14, %r15
movl %esi, (%r15,%r9)
addq $0xc, %r14
incq %rdx
decq %r8
jne 0x6b64
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/disjukr[P]Tetris/Screen.cc
// Function: Screen::RenderScreen(Screen&, int, int)
void Screen::RenderScreen(Screen& screen, int x, int y) {
    for (int j = 0; j < screen.height; ++j) {
        for (int i = 0; i < screen.width; ++i) {
            int tx = i + x;
            int ty = j + y;
            Cell* cell = screen.GetCell(i, j);
            this -> WriteCell(cell -> value, tx, ty);
            this -> FillCell(cell -> foreground, tx, ty, false);
            this -> FillCell(cell -> background, tx, ty, true);
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, -0x30(%rbp)
movslq 0x4(%rsi), %rax
movq %rax, -0x58(%rbp)
testq %rax, %rax
jle 0x6d13
movq -0x30(%rbp), %rax
movl (%rax), %esi
addq $0x10, %rax
movq %rax, -0x70(%rbp)
leaq 0x10(%rdi), %r10
movslq %edx, %rax
movslq %ecx, %rcx
movq %rcx, -0x40(%rbp)
movq %rax, -0x48(%rbp)
leaq (,%rax,4), %rax
leaq (%rax,%rax,2), %rax
movq %rax, -0x38(%rbp)
movq %rsi, -0x50(%rbp)
movq %rsi, %rax
shlq $0x2, %rax
leaq (%rax,%rax,2), %rbx
xorl %r14d, %r14d
cmpl $0x0, -0x50(%rbp)
jle 0x6d06
movq -0x40(%rbp), %rax
leaq (%r14,%rax), %r15
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x60(%rbp)
movslq (%rdi), %rax
movq %rax, -0x68(%rbp)
movq 0x8(%rdi), %rcx
xorl %r11d, %r11d
movq -0x48(%rbp), %rdx
movq -0x38(%rbp), %rax
movq -0x30(%rbp), %rsi
movslq 0x4(%rsi), %r8
movq -0x70(%rbp), %r9
cmpq %r8, %r14
jge 0x6c56
movq -0x60(%rbp), %rsi
movq (%rsi,%r14,8), %r9
addq %r11, %r9
movb (%r9), %r8b
testq %rdx, %rdx
js 0x6c92
testq %r15, %r15
setns %r13b
cmpq -0x68(%rbp), %rdx
setl %r12b
andb %r13b, %r12b
movslq 0x4(%rdi), %r13
cmpq %r13, %r15
setl %sil
andb %r12b, %sil
cmpb $0x1, %sil
jne 0x6ca4
movq (%rcx,%r15,8), %rsi
movb %r8b, (%rsi,%rax)
movslq 0x4(%rdi), %r13
jmp 0x6ca7
movb %r8b, 0x10(%rdi)
movl 0x4(%r9), %r8d
movl %r8d, 0x14(%rdi)
movl 0x8(%r9), %r9d
jmp 0x6ceb
movb %r8b, (%r10)
movl 0x4(%r9), %r8d
cmpq %r15, %r13
setg %sil
andb %r12b, %sil
cmpb $0x1, %sil
jne 0x6cca
movq (%rcx,%r15,8), %rsi
movl %r8d, 0x4(%rsi,%rax)
movslq 0x4(%rdi), %r13
jmp 0x6cce
movl %r8d, 0x14(%rdi)
movl 0x8(%r9), %r9d
cmpq %r15, %r13
setg %sil
andb %sil, %r12b
cmpb $0x1, %r12b
jne 0x6ceb
movq (%rcx,%r15,8), %r8
addq %rax, %r8
jmp 0x6cee
movq %r10, %r8
movl %r9d, 0x8(%r8)
addq $0xc, %rax
incq %rdx
addq $0xc, %r11
cmpq %r11, %rbx
jne 0x6c3a
incq %r14
cmpq -0x58(%rbp), %r14
jne 0x6c06
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/disjukr[P]Tetris/Console.cc
// Function: Console::SetCursor(bool)
void Console::SetCursor(bool visible) {
#ifdef _WIN32
    visible;
#else
    cout << "\x1B[?25" << (visible ? 'h' : 'l');
#endif
    return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %edi, %ebx
movq 0x50cc(%rip), %r14      # 0xbfd8
leaq 0x1659(%rip), %rsi      # 0x856c
movl $0x5, %edx
movq %r14, %rdi
callq 0x3150
xorb $0x1, %bl
shlb $0x2, %bl
orb $0x68, %bl
leaq -0x11(%rbp), %rsi
movb %bl, (%rsi)
movl $0x1, %edx
movq %r14, %rdi
callq 0x3150
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/disjukr[P]Tetris/Console.cc
// Function: Console::SetColor(Color, Color)
void Console::SetColor(Color foreground, Color background) {
#ifdef _WIN32
    SetConsoleTextAttribute(hStdout,
        GetAttributes(foreground, background));
#else
    int foregroundBegin;
    int backgroundBegin;
    switch (foreground) {
    default: case NONE:
        foregroundBegin = 0;
        break;
    case WHITE: foregroundBegin = 97; break;
    case GREY: foregroundBegin = 90; break;
    case BLACK: foregroundBegin = 30; break;
    case BLUE: foregroundBegin = 94; break;
    case CYAN: foregroundBegin = 96; break;
    case GREEN: foregroundBegin = 92; break;
    case MAGENTA: foregroundBegin = 95; break;
    case RED: foregroundBegin = 91; break;
    case YELLOW: foregroundBegin = 93; break;
    }
    switch (background) {
    default: case NONE:
        backgroundBegin = 0;
        break;
    case WHITE: backgroundBegin = 107; break;
    case GREY: backgroundBegin = 47; break;
    case BLACK: backgroundBegin = 40; break;
    case BLUE: backgroundBegin = 104; break;
    case CYAN: backgroundBegin = 106; break;
    case GREEN: backgroundBegin = 102; break;
    case MAGENTA: backgroundBegin = 105; break;
    case RED: backgroundBegin = 101; break;
    case YELLOW: backgroundBegin = 103; break;
    }
    cout << "\x1B[";
    if (foregroundBegin != 0)
        cout << foregroundBegin;
    if (backgroundBegin != 0)
        cout << ';' << backgroundBegin;
    cout << "m";
#endif
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
xorl %ebx, %ebx
movb $0x1, %r15b
decl %edi
movb $0x1, %r12b
movl $0x0, %r14d
cmpl $0x8, %edi
ja 0x6fe1
leaq 0x1595(%rip), %rax      # 0x8524
movslq (%rax,%rdi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movl $0x61, %r14d
jmp 0x6fde
movl $0x60, %r14d
jmp 0x6fde
movl $0x1e, %r14d
jmp 0x6fde
movl $0x5e, %r14d
jmp 0x6fde
movl $0x5b, %r14d
jmp 0x6fde
movl $0x5a, %r14d
jmp 0x6fde
movl $0x5c, %r14d
jmp 0x6fde
movl $0x5f, %r14d
jmp 0x6fde
movl $0x5d, %r14d
xorl %r12d, %r12d
decl %esi
cmpl $0x8, %esi
ja 0x7038
leaq 0x1559(%rip), %rax      # 0x8548
movslq (%rax,%rsi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movl $0x6b, %ebx
jmp 0x7035
movl $0x6a, %ebx
jmp 0x7035
movl $0x28, %ebx
jmp 0x7035
movl $0x68, %ebx
jmp 0x7035
movl $0x65, %ebx
jmp 0x7035
movl $0x2f, %ebx
jmp 0x7035
movl $0x66, %ebx
jmp 0x7035
movl $0x69, %ebx
jmp 0x7035
movl $0x67, %ebx
xorl %r15d, %r15d
movq 0x4f99(%rip), %rdi      # 0xbfd8
leaq 0x1534(%rip), %rsi      # 0x857a
movl $0x2, %edx
callq 0x3150
testb %r12b, %r12b
jne 0x7064
movq 0x4f7c(%rip), %rdi      # 0xbfd8
movl %r14d, %esi
callq 0x3210
testb %r15b, %r15b
jne 0x708b
leaq -0x21(%rbp), %rsi
movb $0x3b, (%rsi)
movq 0x4f61(%rip), %rdi      # 0xbfd8
movl $0x1, %edx
callq 0x3150
movq %rax, %rdi
movl %ebx, %esi
callq 0x3210
movq 0x4f46(%rip), %rdi      # 0xbfd8
leaq 0x14e7(%rip), %rsi      # 0x8580
movl $0x1, %edx
callq 0x3150
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/disjukr[P]Tetris/Console.cc
// Function: Console::ShowScreen()
void Console::ShowScreen() {
#ifdef _WIN32
    hStdout = GetStdHandle(STD_OUTPUT_HANDLE);
    GetConsoleScreenBufferInfo(hStdout, &screenInfo);
    oldAttributes = screenInfo.wAttributes;
#endif
    int width = screen.GetWidth();
    int height = screen.GetHeight();
    for (int j = 0; j < height; ++j) {
        for (int i = 0; i < width; ++i) {
            SetColor(screen.GetColor(i, j, false),
                     screen.GetColor(i, j, true));
            cout.put(screen.GetChar(i, j));
            UnsetColor();
        }
        cout << endl;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x507d(%rip), %r14      # 0xc160
movq %r14, %rdi
callq 0x698a
movl %eax, %ebx
movq %r14, %rdi
callq 0x6992
movl %eax, -0x2c(%rbp)
testl %eax, %eax
jle 0x71bd
xorl %r15d, %r15d
leaq 0x5056(%rip), %r12      # 0xc160
movq 0x4ec7(%rip), %r13      # 0xbfd8
testl %ebx, %ebx
jle 0x7188
xorl %r14d, %r14d
movq %r12, %rdi
movl %r14d, %esi
movl %r15d, %edx
xorl %ecx, %ecx
callq 0x6a04
movl %ebx, %r13d
movl %eax, %ebx
movq %r12, %rdi
movl %r14d, %esi
movl %r15d, %edx
movl $0x1, %ecx
callq 0x6a04
movl %ebx, %edi
movl %r13d, %ebx
movq 0x4e8c(%rip), %r13      # 0xbfd8
movl %eax, %esi
callq 0x6f64
movq %r12, %rdi
movl %r14d, %esi
movl %r15d, %edx
callq 0x69d0
movsbl %al, %esi
movq %r13, %rdi
callq 0x3040
movl $0x4, %edx
movq %r13, %rdi
leaq 0x1402(%rip), %rsi      # 0x857d
callq 0x3150
incl %r14d
cmpl %r14d, %ebx
jne 0x7118
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3120
movsbl %al, %esi
movq %r13, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x30c0
incl %r15d
cmpl -0x2c(%rbp), %r15d
jne 0x7111
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/disjukr[P]Tetris/Keyboard.cc
// Function: Keyboard::code()
Key Keyboard::code() {
#ifdef _WIN32
    if (GetAsyncKeyState(VK_UP) & SHRT_MAX) return UP;
    else if (GetAsyncKeyState(VK_DOWN) & SHRT_MAX) return DOWN;
    else if (GetAsyncKeyState(VK_LEFT) & SHRT_MAX) return LEFT;
    else if (GetAsyncKeyState(VK_RIGHT) & SHRT_MAX) return RIGHT;
#endif
    if (_kbhit()) {
        switch (nonblockGetCh()) {
        case 27:
#ifdef _WIN32
            return ESC;
#else
            if (!_kbhit()) return ESC;
            if (nonblockGetCh() == 91) {
                switch (nonblockGetCh()) {
                case 65: return UP;
                case 66: return DOWN;
                case 68: return LEFT;
                case 67: return RIGHT;
                }
            }
#endif
        case 'q': case 'Q': return Q;
        case 'w': case 'W': return W;
        case 'a': case 'A': return A;
        case 's': case 'S': return S;
        case 'd': case 'D': return D;
        case 'e': case 'E': return E;
        case 'r': case 'R': return R;
        case 'f': case 'F': return F;
        case 'z': case 'Z': return Z;
        case 'x': case 'X': return X;
        case 'c': case 'C': return C;
        case ' ': return SPACE;
        }
    }
    return ETC;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
callq 0x74a4
testl %eax, %eax
je 0x75fe
callq 0x31a0
movzbl %al, %ecx
movl $0x7, %eax
cmpl $0x70, %ecx
jg 0x75ce
leal -0x41(%rcx), %edx
cmpl $0x25, %edx
ja 0x75ed
leaq 0xfc6(%rip), %rcx       # 0x8584
movslq (%rcx,%rdx,4), %rdx
addq %rcx, %rdx
jmpq *%rdx
movl $0x8, %eax
jmp 0x7603
addl $-0x71, %ecx
cmpl $0x9, %ecx
ja 0x75fe
leaq 0x103f(%rip), %rdx      # 0x861c
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movl $0xc, %eax
jmp 0x7603
cmpl $0x1b, %ecx
je 0x7636
cmpl $0x20, %ecx
jne 0x75fe
movl $0x4, %eax
jmp 0x7603
movl $0x11, %eax
popq %rbp
retq
movl $0xf, %eax
jmp 0x7603
movl $0x9, %eax
jmp 0x7603
movl $0xe, %eax
jmp 0x7603
movl $0xa, %eax
jmp 0x7603
movl $0x10, %eax
jmp 0x7603
movl $0xb, %eax
jmp 0x7603
movl $0xd, %eax
jmp 0x7603
callq 0x74a4
testl %eax, %eax
je 0x7669
callq 0x31a0
cmpb $0x5b, %al
jne 0x7662
callq 0x31a0
addb $-0x41, %al
cmpb $0x4, %al
jae 0x7662
movzbl %al, %eax
leaq 0xfe7(%rip), %rcx       # 0x8644
movl (%rcx,%rax,4), %eax
jmp 0x7603
movl $0x6, %eax
jmp 0x7603
movl $0x5, %eax
jmp 0x7603
// File: /workspace/github_cpp_makefile_star2_O3/ssubrandon[P]460Project2/Project2.cpp
// Function: main
int main (int argc, char * argv[])
{
	if (argc < 2)
	{
		printf ("format: %s <filename>\n", argv[0]);
		exit (1);
	}
/*
	SetLimits ();
*/
	SyntacticalAnalyzer parse (argv[1]);

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x848, %rsp            # imm = 0x848
cmpl $0x1, %edi
jle 0x2c24
movq 0x8(%rsi), %rsi
leaq -0x848(%rbp), %rbx
movq %rbx, %rdi
callq 0x4ee8
movq %rbx, %rdi
callq 0x558c
xorl %eax, %eax
addq $0x848, %rsp            # imm = 0x848
popq %rbx
popq %rbp
retq
movq (%rsi), %rsi
leaq 0x83d6(%rip), %rdi      # 0xb004
xorl %eax, %eax
callq 0x2050
movl $0x1, %edi
callq 0x2270
nop
// File: /workspace/github_cpp_makefile_star2_O3/ssubrandon[P]460Project2/SyntacticalAnalyzer.cpp
// Function: SyntacticalAnalyzer::SyntacticalAnalyzer(char*)
SyntacticalAnalyzer::SyntacticalAnalyzer (char * filename)
{
	lex = new LexicalAnalyzer (filename);
	token_type t;

	int i =0;
	string file = "";
	while( filename[i] != '.'){
		file += filename[i];
		i++;
	}
	token = lex -> GetToken();
	ruleFile.open(file + ".Zp2");

	errors = program();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r12
addq $0x18, %rdi
movq %rdi, -0x88(%rbp)
callq 0x2250
leaq 0x220(%r12), %r14
movq %r14, %rdi
callq 0x2320
leaq 0x420(%r12), %r15
movq %r15, %rdi
movq %r14, -0x80(%rbp)
callq 0x2320
leaq 0x620(%r12), %rdi
movq %rdi, -0x78(%rbp)
callq 0x2320
leaq 0x830(%r12), %r13
movq %r13, 0x820(%r12)
movq $0x0, 0x828(%r12)
movb $0x0, 0x830(%r12)
movl $0x888, %edi            # imm = 0x888
callq 0x2200
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2ca8
movq %r14, 0x8(%r12)
leaq -0x40(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x664b(%rip), %rdx      # 0xb5e0
leaq -0x50(%rbp), %rdi
movq %rdx, %rsi
callq 0x4bce
movb (%rbx), %al
cmpb $0x2e, %al
je 0x4fc2
incq %rbx
leaq -0x50(%rbp), %r14
movsbl %al, %esi
movq %r14, %rdi
callq 0x21b0
movb (%rbx), %al
incq %rbx
cmpb $0x2e, %al
jne 0x4fae
movq 0x8(%r12), %rdi
callq 0x3e8e
movl %eax, 0x10(%r12)
leaq -0x60(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
leaq -0x70(%rbp), %rdi
callq 0x4b30
leaq 0x6848(%rip), %rsi      # 0xb83c
leaq -0x70(%rbp), %rdi
callq 0x2380
leaq -0x70(%rbp), %rsi
movq %r15, %rdi
movl $0x10, %edx
callq 0x2120
movq -0x70(%rbp), %rdi
cmpq %rbx, %rdi
je 0x5023
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2210
movq %r12, %rdi
callq 0x5106
movl %eax, (%r12)
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x5048
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2210
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5059
movq %rax, -0x30(%rbp)
movq -0x70(%rbp), %rdi
cmpq %rbx, %rdi
je 0x50a4
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2210
jmp 0x50a4
jmp 0x50a0
jmp 0x5086
movq %rax, -0x30(%rbp)
movl $0x888, %esi            # imm = 0x888
movq %r14, %rdi
jmp 0x50b8
movq %rax, -0x30(%rbp)
jmp 0x50bd
movq %rax, -0x30(%rbp)
jmp 0x50df
movq %rax, -0x30(%rbp)
jmp 0x50e7
movq %rax, -0x30(%rbp)
jmp 0x50f0
jmp 0x50a0
movq %rax, -0x30(%rbp)
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x50bd
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2210
movq 0x820(%r12), %rdi
cmpq %r13, %rdi
je 0x50d6
movq (%r13), %rsi
incq %rsi
callq 0x2210
movq -0x78(%rbp), %rdi
callq 0x22c0
movq %r15, %rdi
callq 0x22c0
movq -0x80(%rbp), %rdi
callq 0x22c0
movq -0x88(%rbp), %rdi
callq 0x20b0
movq -0x30(%rbp), %rdi
callq 0x2340
nop
// File: /workspace/github_cpp_makefile_star2_O3/ssubrandon[P]460Project2/SyntacticalAnalyzer.cpp
// Function: SyntacticalAnalyzer::~SyntacticalAnalyzer()
SyntacticalAnalyzer::~SyntacticalAnalyzer ()
{// this is the deconstructor for the syntactical analyzer class
  cout << errors << " Syntactical errors found in input file\n";
	lex->listing << errors << " Syntactical errors found in input file\n";
	lex->debug << errors << " Syntactical errors found in input file\n";
  ruleFile.close();
	delete lex;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl (%rdi), %esi
movq 0x9a36(%rip), %rdi      # 0xefd8
callq 0x2330
leaq 0x6293(%rip), %rsi      # 0xb841
movl $0x28, %edx
movq %rax, %rdi
callq 0x2260
movl $0x200, %edi            # imm = 0x200
addq 0x8(%rbx), %rdi
movl (%rbx), %esi
callq 0x2330
leaq 0x626f(%rip), %rsi      # 0xb841
movl $0x28, %edx
movq %rax, %rdi
callq 0x2260
movq 0x8(%rbx), %rdi
movl (%rbx), %esi
callq 0x2330
leaq 0x6250(%rip), %rsi      # 0xb841
movl $0x28, %edx
movq %rax, %rdi
callq 0x2260
leaq 0x420(%rbx), %rdi
callq 0x22a0
movq 0x8(%rbx), %r14
testq %r14, %r14
je 0x561b
movq %r14, %rdi
callq 0x3d08
movl $0x888, %esi            # imm = 0x888
movq %r14, %rdi
callq 0x2210
movq 0x820(%rbx), %rdi
leaq 0x830(%rbx), %rax
cmpq %rax, %rdi
je 0x5646
movq (%rax), %rsi
incq %rsi
callq 0x2210
movq 0x9983(%rip), %rax      # 0xefd0
movq (%rax), %r14
movq 0x18(%rax), %r15
movq %r14, 0x620(%rbx)
movq -0x18(%r14), %rax
movq %r15, 0x620(%rbx,%rax)
leaq 0x628(%rbx), %rdi
callq 0x21a0
leaq 0x718(%rbx), %rdi
callq 0x20f0
movq %r14, 0x420(%rbx)
movq -0x18(%r14), %rax
movq %r15, 0x420(%rbx,%rax)
leaq 0x428(%rbx), %rdi
callq 0x21a0
leaq 0x518(%rbx), %rdi
callq 0x20f0
movq %r14, 0x220(%rbx)
movq -0x18(%r14), %rax
movq %r15, 0x220(%rbx,%rax)
leaq 0x228(%rbx), %rdi
callq 0x21a0
leaq 0x318(%rbx), %rdi
callq 0x20f0
addq $0x18, %rbx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x20b0
movq %rax, %rdi
callq 0x4a91
nop
// File: /workspace/github_cpp_makefile_star2_O3/ssubrandon[P]460Project2/SyntacticalAnalyzer.cpp
// Function: SyntacticalAnalyzer::quoted_lit()
int SyntacticalAnalyzer::quoted_lit(){
   //This function deals with the quoted_lit rules (13) and will check for syntactical correctness,
  //this function will then, depending on the token seen, send the program to any other token.
	ruleFile << "Entering quoted_lit function; Current token is: " << lex ->GetTokenName(token) << ", lexeme: " << lex->GetLexeme() << endl;

	int errors = 0;
	ruleFile << "Using Rule 13" << endl;
	errors += any_other_token();
	ruleFile << "Exiting quoted_lit function; current token is: " << lex ->GetTokenName (token) << endl;

	return errors;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r14
leaq 0x420(%rdi), %rbx
leaq 0x31e2(%rip), %rsi      # 0xbede
movl $0x30, %edx
movq %rbx, %rdi
callq 0x2260
movq 0x8(%r14), %rsi
movl 0x10(%r14), %edx
leaq -0x40(%rbp), %r15
movq %r15, %rdi
callq 0x499a
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %rbx, %rdi
callq 0x2260
movq %rax, %r15
leaq 0x2b62(%rip), %rsi      # 0xb898
movl $0xa, %edx
movq %rax, %rdi
callq 0x2260
movq 0x8(%r14), %rsi
leaq -0x60(%rbp), %rdi
callq 0x49d4
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq %r15, %rdi
callq 0x2260
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2170
leaq -0x50(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8da3
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2210
leaq -0x30(%rbp), %r12
movq -0x10(%r12), %rdi
cmpq %r12, %rdi
je 0x8dbd
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2210
leaq 0x314b(%rip), %rsi      # 0xbf0f
movl $0xd, %edx
movq %rbx, %rdi
callq 0x2260
movq 0x420(%r14), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2170
movq %r14, %rdi
callq 0x924c
movl %eax, %r15d
leaq 0x310f(%rip), %rsi      # 0xbf1d
movl $0x2f, %edx
movq %rbx, %rdi
callq 0x2260
movq 0x8(%r14), %rsi
movl 0x10(%r14), %edx
leaq -0x40(%rbp), %r14
movq %r14, %rdi
callq 0x499a
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x2260
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2170
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x8e7d
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2210
movl %r15d, %eax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8e8f
movq %rax, %rbx
jmp 0x8ebe
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
jne 0x8ecb
jmp 0x8ed7
movq %rax, %rbx
leaq -0x50(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8ebe
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2210
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8ed7
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2210
movq %rbx, %rdi
callq 0x2340
nop
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tsl_hopscotch_map/./hopscotch_hash.h
// Function: tsl::bhopscotch_map<unsigned int, unsigned int, Hash32, std::equal_to<unsigned int>, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int>>, 62u, false, tsl::hh::power_of_two_growth_policy<2ul>>::ValueSelect::value_type& tsl::detail_hopscotch_hash::hopscotch_hash<std::pair<unsigned int const, unsigned int>, tsl::bhopscotch_map<unsigned int, unsigned int, Hash32, std::equal_to<unsigned int>, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int>>, 62u, false, tsl::hh::power_of_two_growth_policy<2ul>>::KeySelect, tsl::bhopscotch_map<unsigned int, unsigned int, Hash32, std::equal_to<unsigned int>, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int>>, 62u, false, tsl::hh::power_of_two_growth_policy<2ul>>::ValueSelect, Hash32, std::equal_to<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int>>, 62u, false, tsl::hh::power_of_two_growth_policy<2ul>, std::map<unsigned int, unsigned int, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int>>>>::operator[]<unsigned int, tsl::bhopscotch_map<unsigned int, unsigned int, Hash32, std::equal_to<unsigned int>, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int>>, 62u, false, tsl::hh::power_of_two_growth_policy<2ul>>::ValueSelect, (void*)0>(unsigned int&&)
typename U::value_type& operator[](K&& key) {
        using T = typename U::value_type;
        
        const std::size_t hash = hash_key(key);
        const std::size_t ibucket_for_hash = bucket_for_hash(hash);
        
        T* value = find_value_impl(key, hash, m_buckets + ibucket_for_hash);
        if(value != nullptr) {
            return *value;
        }
        else {
            return insert_value(ibucket_for_hash, hash, std::piecewise_construct, 
                                                        std::forward_as_tuple(std::forward<K>(key)), 
                                                        std::forward_as_tuple()).first.value();
        }
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r12
movq %rdi, %r14
movl (%rsi), %ebx
movl (%rdi), %r15d
andl %ebx, %r15d
movq %r15, %rcx
shlq $0x4, %rcx
addq 0x50(%rdi), %rcx
movq %rbx, %rdx
callq 0x1f42
testq %rax, %rax
jne 0x1cb9
leaq 0x10(%rsp), %r9
movq %r12, (%r9)
leaq 0xf(%rsp), %rax
movq %rax, (%rsp)
leaq 0x14a5(%rip), %r8       # 0x312e
leaq 0x18(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x1cc6
movq (%r12), %rcx
movq 0x10(%r12), %rax
leaq 0xc(%rcx), %rdx
addq $0x24, %rax
cmpq 0x8(%r12), %rcx
cmovneq %rdx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tsl_hopscotch_map/./hopscotch_hash.h
// Function: tsl::bhopscotch_map<unsigned int, unsigned int, Hash32, std::equal_to<unsigned int>, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int>>, 62u, false, tsl::hh::power_of_two_growth_policy<2ul>>::ValueSelect::value_type const* tsl::detail_hopscotch_hash::hopscotch_hash<std::pair<unsigned int const, unsigned int>, tsl::bhopscotch_map<unsigned int, unsigned int, Hash32, std::equal_to<unsigned int>, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int>>, 62u, false, tsl::hh::power_of_two_growth_policy<2ul>>::KeySelect, tsl::bhopscotch_map<unsigned int, unsigned int, Hash32, std::equal_to<unsigned int>, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int>>, 62u, false, tsl::hh::power_of_two_growth_policy<2ul>>::ValueSelect, Hash32, std::equal_to<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int>>, 62u, false, tsl::hh::power_of_two_growth_policy<2ul>, std::map<unsigned int, unsigned int, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int>>>>::find_value_impl<unsigned int, tsl::bhopscotch_map<unsigned int, unsigned int, Hash32, std::equal_to<unsigned int>, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int>>, 62u, false, tsl::hh::power_of_two_growth_policy<2ul>>::ValueSelect, (void*)0>(unsigned int const&, unsigned long, tsl::detail_hopscotch_hash::hopscotch_bucket<std::pair<unsigned int const, unsigned int>, 62u, false> const*) const
const typename U::value_type* find_value_impl(const K& key, std::size_t hash, 
                                                  const hopscotch_bucket* bucket_for_hash) const 
    {
        const hopscotch_bucket* bucket_found = find_in_buckets(key, hash, bucket_for_hash);
        if(bucket_found != nullptr) {
            return std::addressof(ValueSelect()(bucket_found->value()));
        }
        
        if(bucket_for_hash->has_overflow()) {
            auto it_overflow = find_in_overflow(key);
            if(it_overflow != m_overflow_elements.end()) {
                return std::addressof(ValueSelect()(*it_overflow));
            }
        }
        
        return nullptr;
    }

// Assembly:
movq %rcx, %rax
movq (%rcx), %rcx
cmpq $0x4, %rcx
jb 0x1f79
movq %rcx, %r8
shrq $0x2, %r8
movl (%rsi), %edx
addq $0xc, %rax
testb $0x1, %r8b
je 0x1f66
cmpl %edx, -0x4(%rax)
je 0x1fb9
movq %r8, %r9
shrq %r9
addq $0x10, %rax
cmpq $0x1, %r8
movq %r9, %r8
ja 0x1f5b
testb $0x2, %cl
je 0x1fba
movq 0x30(%rdi), %rax
testq %rax, %rax
je 0x1fba
addq $0x28, %rdi
movl (%rsi), %ecx
movq %rdi, %rdx
xorl %esi, %esi
cmpl %ecx, 0x20(%rax)
setb %sil
cmovaeq %rax, %rdx
movq 0x10(%rax,%rsi,8), %rax
testq %rax, %rax
jne 0x1f90
cmpq %rdi, %rdx
je 0x1fba
leaq 0x24(%rdx), %rsi
xorl %eax, %eax
cmpl 0x20(%rdx), %ecx
cmovaeq %rsi, %rax
retq
xorl %eax, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/myudelson[P]hmm-scalable/trainhmmst.cpp
// Function: read_and_structure_data(char const*, _IO_FILE*)
bool read_and_structure_data(const char *filename, FILE *fid_console) {
    bool readok = true;
    if(task.binaryinput==0) {
        readok = InputUtilSt::readTxt(filename, &task);
    } else {
        readok = InputUtilSt::readBin(filename, &task);
    }
    if(! readok ) {
        return false;
    }
    
	NDAT t = 0;
	NCAT k;
    
	// Pass A, find first and last instance of null skill
	for(t=0; t<task.N; t++) {
        if(task.multiskill==0)
            k = task.dat_skill[t];//[t];
        else
            k = task.dat_skill_stacked[ task.dat_skill_rix[t] ]; // first skill of multi-skill

		// null skill : just count
		if( k < 0 ) {
            task.N_null++;
            if(task.first_null_skill==-1) task.first_null_skill = t; // update once
            task.last_null_skill = t; // update always
			continue;
		}
	}

    return true;
}

// Assembly:
pushq %rbx
cmpl $0x0, 0x17abe(%rip)     # 0x1d2d0
je 0x5822
leaq 0x17a3d(%rip), %rsi     # 0x1d258
callq 0xd3ae
jmp 0x582e
leaq 0x17a2f(%rip), %rsi     # 0x1d258
callq 0xc01a
testb %al, %al
je 0x58ae
movslq 0x18317(%rip), %rcx     # 0x1db50
movb $0x1, %al
testq %rcx, %rcx
jle 0x58b0
movl 0x18329(%rip), %r8d     # 0x1db70
movl 0x1831f(%rip), %edx     # 0x1db6c
movb 0x18324(%rip), %sil     # 0x1db78
movq 0x1829d(%rip), %rdi     # 0x1daf8
movq 0x182a6(%rip), %r9      # 0x1db08
movq 0x18287(%rip), %r10     # 0x1daf0
xorl %r11d, %r11d
movq %r10, %rbx
testb %sil, %sil
je 0x587c
movslq (%r9,%r11,4), %rbx
leaq (%rdi,%rbx,4), %rbx
cmpl $0x0, (%rbx)
jns 0x58a0
incl %edx
movl %edx, 0x182e3(%rip)     # 0x1db6c
cmpl $-0x1, %r8d
jne 0x5899
movl %r11d, 0x182da(%rip)    # 0x1db70
movl %r11d, %r8d
movl %r11d, 0x182d4(%rip)    # 0x1db74
incq %r11
addq $0x4, %r10
cmpq %r11, %rcx
jne 0x586c
jmp 0x58b0
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/jpbalarini[P]otsus/./framework/CFramework.cpp
// Function: CFramework::CFramework()
CFramework::CFramework() {
  PRINT_VERBOSE("CFramework created\n");
  CFramework::CFramework_verbose = false;
  this->unique_index_counter = 1;
  CFramework::CFramework_ref = this;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x7eb1(%rip), %rax      # 0xbcb8
movq %rax, (%rdi)
leaq 0x10(%rdi), %rax
movl $0x0, 0x10(%rdi)
xorl %ecx, %ecx
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
movq %rax, 0x28(%rdi)
movq %rcx, 0x30(%rdi)
cmpb $0x1, 0x8493(%rip)      # 0xc2c1
jne 0x3e3c
leaq 0x42f1(%rip), %rdi      # 0x8128
callq 0x3400
movb $0x0, 0x847e(%rip)      # 0xc2c1
movl $0x1, 0x38(%rbx)
movq %rbx, 0x8477(%rip)      # 0xc2c8
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/jpbalarini[P]otsus/./framework/CFramework.cpp
// Function: CFramework::~CFramework()
CFramework::~CFramework() {
  PRINT_VERBOSE("Cleaning up %d matrices\n", (int)this->mmatrices.size());
  //
  if (CFramework_verbose)
    this->print_matrix_list();
  //
  while (this->mmatrices.size() != 0) {
    map<int, MatrixInfo*>::iterator it = this->mmatrices.begin();
    MatrixInfo *matrix_info = it->second;
    this->delete_matrix(matrix_info->id);
  }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x7e59(%rip), %rax      # 0xbcb8
movq %rax, (%rdi)
movb 0x8459(%rip), %al       # 0xc2c1
cmpb $0x1, %al
jne 0x3e83
movl 0x30(%rbx), %esi
leaq 0x418e(%rip), %rdi      # 0x8004
xorl %eax, %eax
callq 0x3070
movb 0x843e(%rip), %al       # 0xc2c1
testb $0x1, %al
je 0x3e8f
movq %rbx, %rdi
callq 0x3ec0
cmpq $0x0, 0x30(%rbx)
je 0x3eab
movq 0x20(%rbx), %rax
movq 0x28(%rax), %rax
movl 0x8(%rax), %esi
movq %rbx, %rdi
callq 0x3f3e
jmp 0x3e8f
addq $0x8, %rbx
movq %rbx, %rdi
popq %rbx
jmp 0x4502
movq %rax, %rdi
callq 0x4491
// File: /workspace/github_cpp_makefile_star2_O3/jpbalarini[P]otsus/./framework/CFramework.cpp
// Function: CFramework::print_matrix_list()
void CFramework::print_matrix_list() {
  printf("\nFramework matrix list (%d matrices):\n", (int)this->mmatrices.size());
  printf("--------------------------------------------\n");
  map<int, MatrixInfo*>::iterator end = this->mmatrices.end(); 
  int i = 1;
  for (map<int, MatrixInfo*>::iterator it = this->mmatrices.begin(); it != end; ++it) {
    MatrixInfo *matrix_info = it->second;
    printf("%d) Matrix M_%d data at %p\n", i, matrix_info->id, matrix_info->data);
    i++;
  }
  printf("\n");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x30(%rdi), %esi
leaq 0x4149(%rip), %rdi      # 0x801d
xorl %eax, %eax
callq 0x3070
leaq 0x4259(%rip), %rdi      # 0x813b
callq 0x3400
movq 0x20(%rbx), %r14
addq $0x10, %rbx
cmpq %rbx, %r14
je 0x3f29
movl $0x1, %ebp
leaq 0x4144(%rip), %r15      # 0x8044
movq 0x28(%r14), %rax
movl 0x8(%rax), %edx
movq 0x18(%rax), %rcx
movq %r15, %rdi
movl %ebp, %esi
xorl %eax, %eax
callq 0x3070
incl %ebp
movq %r14, %rdi
callq 0x31d0
movq %rax, %r14
cmpq %rbx, %rax
jne 0x3f00
movl $0xa, %edi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x3360
nop
// File: /workspace/github_cpp_makefile_star2_O3/jpbalarini[P]otsus/./framework/CFramework.cpp
// Function: CFramework::delete_matrix(int)
void CFramework::delete_matrix(int id) {
  MatrixInfo *matrix_info = CFramework::find_matrix(id);
  if (matrix_info == NULL) {
    PRINT_ERROR("matrix M_%d not in memory!\n", id);
    exit(-1);
  }
  PRINT_VERBOSE("Deleting matrix M_%d at %p, data at %p\n", id, matrix_info, matrix_info->data);
  delete[] matrix_info->data;
  this->mmatrices.erase(id);
  delete matrix_info;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebp
movq %rdi, %r14
movl %esi, 0xc(%rsp)
callq 0x4178
testq %rax, %rax
je 0x3fb8
movq %rax, %rbx
cmpb $0x1, 0x835e(%rip)      # 0xc2c1
jne 0x3f7c
movq 0x18(%rbx), %rcx
leaq 0x4167(%rip), %rdi      # 0x80d7
movl %ebp, %esi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x3070
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x3f8a
callq 0x3350
addq $0x8, %r14
leaq 0xc(%rsp), %rsi
movq %r14, %rdi
callq 0x4798
movq %r14, %rdi
movq %rax, %rsi
callq 0x4816
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl %ebp, %edi
callq 0x3540
nop
// File: /workspace/github_cpp_makefile_star2_O3/jpbalarini[P]otsus/./framework/CFramework.cpp
// Function: CFramework::create_matrix(int, int*, int&)
float *CFramework::create_matrix(int num_dims, int *N, int &out_id) {
  int product_dims = 1;
  for (int i = 0; i < num_dims; i++)
    product_dims *= N[i];

  float *data = new float[product_dims];
  int id = this->unique_index_counter++;
  MatrixInfo *matrix_info = new MatrixInfo(id, num_dims, N, data);
  this->mmatrices[id] = matrix_info;
  out_id = id;

  PRINT_VERBOSE("Created matrix M_%d at %p, data at %p\n", id, matrix_info, matrix_info->data);
  return data;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, 0x10(%rsp)
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %r14
movl %esi, %r12d
testl %esi, %esi
jle 0x405d
movl $0x1, %eax
xorl %ecx, %ecx
imull (%r15,%rcx,4), %eax
incq %rcx
cmpq %rcx, %r12
jne 0x4037
cltq
leaq (,%rax,4), %rcx
testl %eax, %eax
movq $-0x1, %rdi
cmovnsq %rcx, %rdi
jmp 0x4062
movl $0x4, %edi
callq 0x3030
movq %rax, 0x8(%rsp)
movl 0x38(%r14), %r13d
leal 0x1(%r13), %eax
movl %eax, 0x38(%r14)
movl %r13d, 0x4(%rsp)
movl $0x20, %edi
callq 0x3250
movq %rax, %rbx
leaq 0x7c57(%rip), %rax      # 0xbce8
movq %rax, (%rbx)
movl %r13d, 0x8(%rbx)
movl %ebp, 0xc(%rbx)
shlq $0x2, %r12
testl %ebp, %ebp
movq $-0x1, %rdi
cmovnsq %r12, %rdi
callq 0x3030
movq %rax, 0x10(%rbx)
testl %ebp, %ebp
jle 0x40c7
movq %rax, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x3210
movq 0x8(%rsp), %r12
movq %r12, 0x18(%rbx)
addq $0x8, %r14
leaq 0x4(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x449c
movq %rbx, (%rax)
movl (%r15), %esi
movq 0x10(%rsp), %rax
movl %esi, (%rax)
cmpb $0x1, 0x81c9(%rip)      # 0xc2c1
jne 0x410f
movq 0x18(%rbx), %rcx
leaq 0x3f5b(%rip), %rdi      # 0x8060
movq %rbx, %rdx
xorl %eax, %eax
callq 0x3070
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movl $0x20, %esi
movq %rbx, %rdi
callq 0x3260
movq %r14, %rdi
callq 0x34b0
nop
// File: /workspace/github_cpp_makefile_star2_O3/jpbalarini[P]otsus/./framework/CFramework.cpp
// Function: CFramework::find_matrix(int)
MatrixInfo *CFramework::find_matrix(int id) {
  if (this->mmatrices.find(id) != this->mmatrices.end())
    return this->mmatrices[id];
  else
    return NULL;
}

// Assembly:
pushq %rax
movl %esi, 0x4(%rsp)
movq 0x18(%rdi), %rcx
testq %rcx, %rcx
je 0x41b6
movq %rdi, %rax
addq $0x8, %rdi
addq $0x10, %rax
movq %rax, %rdx
xorl %r8d, %r8d
cmpl %esi, 0x20(%rcx)
setl %r8b
cmovgeq %rcx, %rdx
movq 0x10(%rcx,%r8,8), %rcx
testq %rcx, %rcx
jne 0x4194
cmpq %rax, %rdx
je 0x41b6
cmpl %esi, 0x20(%rdx)
jle 0x41ba
xorl %eax, %eax
popq %rcx
retq
leaq 0x4(%rsp), %rsi
callq 0x449c
movq (%rax), %rax
jmp 0x41b8
nop
// File: /workspace/github_cpp_makefile_star2_O3/jpbalarini[P]otsus/./framework/CFramework.cpp
// Function: CFramework::find_matrix(float*)
int CFramework::find_matrix(float *data) {
  map<int, MatrixInfo*>::iterator end = this->mmatrices.end(); 
  for (map<int, MatrixInfo*>::iterator it = this->mmatrices.begin(); it != end; ++it) {
    MatrixInfo *matrix_info = it->second;
    if (matrix_info->data == data)
      return matrix_info->id;
  }
  return -1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r15
movq 0x20(%rdi), %rax
addq $0x10, %r15
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpq %r15, %rax
je 0x4203
movq %rsi, %r14
movq 0x28(%rax), %rcx
cmpq %r14, 0x18(%rcx)
je 0x4200
movq %rax, %rdi
callq 0x31d0
cmpq %r15, %rax
jne 0x41e7
jmp 0x4203
movl 0x8(%rcx), %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/jpbalarini[P]otsus/./framework/CFramework.cpp
// Function: CFramework::find_matrix_by_list_pos(int)
MatrixInfo *CFramework::find_matrix_by_list_pos(int pos) {
  map<int, MatrixInfo*>::iterator end = this->mmatrices.end(); 
  int i = 1;
  for (map<int, MatrixInfo*>::iterator it = this->mmatrices.begin(); it != end; ++it) {
    MatrixInfo *matrix_info = it->second;
    if (i == pos)
      return matrix_info;
    i++;
  }
  return NULL;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
movq 0x20(%rdi), %rax
addq $0x10, %r14
cmpq %r14, %rax
je 0x4237
movl %esi, %ebp
xorl %ebx, %ebx
decl %ebp
je 0x423b
movq %rax, %rdi
callq 0x31d0
cmpq %r14, %rax
jne 0x4224
jmp 0x423f
xorl %ebx, %ebx
jmp 0x423f
movq 0x28(%rax), %rbx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/jpbalarini[P]otsus/./framework/CFramework.cpp
// Function: CFramework::save_matrix(MatrixInfo*, char*)
void CFramework::save_matrix(MatrixInfo *matrix, char *filename) {
  FILE *fp = fopen(filename, "wb");

  int num_elements = 1;
  for (int i = 0; i < matrix->num_dims; i++)
    num_elements *= matrix->N[i];

  fwrite(&matrix->num_dims, sizeof(matrix->num_dims), 1, fp);
  for (int i = 0; i < matrix->num_dims; i++)
    fwrite(&matrix->N[i], sizeof(matrix->N[0]), 1, fp);

  size_t written = fwrite(matrix->data, sizeof(matrix->data[0]), num_elements, fp);
  if (written != num_elements) {
    fprintf(stderr, "Write error!\n");
    exit(-1);
  }

  fclose(fp);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rdi
movq %rsi, %r14
leaq 0x3ea1(%rip), %rsi      # 0x80ff
callq 0x32f0
movq %rax, %rbx
leaq 0xc(%r14), %r12
movslq 0xc(%r14), %rax
testq %rax, %rax
jle 0x4294
movq 0x10(%r14), %rcx
movl $0x1, %r15d
xorl %edx, %edx
movslq (%rcx,%rdx,4), %rsi
movslq %r15d, %r15
imulq %rsi, %r15
incq %rdx
cmpq %rdx, %rax
jne 0x427f
jmp 0x429a
movl $0x1, %r15d
movl $0x4, %esi
movl $0x1, %edx
movq %r12, %rdi
movq %rbx, %rcx
callq 0x3510
cmpl $0x0, (%r12)
jle 0x42e5
xorl %r12d, %r12d
xorl %r13d, %r13d
movq 0x10(%r14), %rdi
addq %r12, %rdi
movl $0x4, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x3510
incq %r13
movslq 0xc(%r14), %rax
addq $0x4, %r12
cmpq %rax, %r13
jl 0x42bc
movq 0x18(%r14), %rdi
movl $0x4, %esi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x3510
cmpq %r15, %rax
jne 0x430f
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x3240
callq 0x3583
// File: /workspace/github_cpp_makefile_star2_O3/jpbalarini[P]otsus/./framework/CFramework.cpp
// Function: CFramework::load_matrix(MatrixInfo*, char*)
int CFramework::load_matrix(MatrixInfo *matrix, char *filename) {
  FILE *fp = fopen(filename, "rb");
  if (fp == NULL)
    return -1;

  // Read number of dimensions
  int num_dims; 
  size_t dummy = fread(&num_dims, sizeof(matrix->num_dims), 1, fp);

  // Check number of dimensions
  if (num_dims != matrix->num_dims) {
    fclose(fp);
    return -2;
  }

  // Read matrix size
  dummy = fread(matrix->N, sizeof(matrix->N[0]), num_dims, fp);

  // Get number of elements
  int num_elements = 1;
  for (int i = 0; i < num_dims; i++)
    num_elements *= matrix->N[i];

  // Get matrix name and delete it
  delete[] matrix->data;
  matrix->data = new float[num_elements];

  // Read data
  size_t read = fread(matrix->data, sizeof(matrix->N[0]), num_elements, fp);
  if (read != num_elements) {
    fprintf(stderr, "Read error!\n");
    return -3;
  }
  
  fclose(fp);
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rdi
movq %rsi, %r14
leaq 0x3de8(%rip), %rsi      # 0x8110
callq 0x32f0
testq %rax, %rax
je 0x438a
movq %rax, %rbx
leaq 0x4(%rsp), %r15
movl $0x4, %esi
movl $0x1, %edx
movq %r15, %rdi
movq %rax, %rcx
callq 0x33d0
movslq (%r15), %r15
cmpl 0xc(%r14), %r15d
jne 0x4391
movq 0x10(%r14), %rdi
movl $0x4, %esi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x33d0
testl %r15d, %r15d
jle 0x43a0
movq 0x10(%r14), %rax
movl $0x1, %ebp
xorl %ecx, %ecx
imull (%rax,%rcx,4), %ebp
incq %rcx
cmpq %rcx, %r15
jne 0x437c
jmp 0x43a5
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x43f7
movq %rbx, %rdi
callq 0x3240
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
jmp 0x43f7
movl $0x1, %ebp
movq 0x18(%r14), %rdi
testq %rdi, %rdi
je 0x43b3
callq 0x3350
movslq %ebp, %r15
leaq (,%r15,4), %rax
testl %r15d, %r15d
movq $-0x1, %rdi
cmovnsq %rax, %rdi
callq 0x3030
movq %rax, 0x18(%r14)
movl $0x4, %esi
movq %rax, %rdi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x33d0
cmpq %r15, %rax
jne 0x4402
movq %rbx, %rdi
callq 0x3240
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x35a8
movl $0xfffffffd, %eax       # imm = 0xFFFFFFFD
jmp 0x43f7