LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/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 0x62e6
testl %edx, %edx
js 0x62e6
cmpl %esi, (%rax)
jle 0x62e6
cmpl %edx, 0x4(%rax)
jle 0x62e6
pushq %rbp
movq %rsp, %rbp
movq 0x8(%rax), %rcx
movl %edx, %edx
movl %esi, %eax
imulq $0xc, %rax, %rax
addq (%rcx,%rdx,8), %rax
popq %rbp
retq
addq $0x10, %rax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, -0x2c(%rbp)
movl %edx, %r14d
movl %esi, %r15d
movq %rdi, %r12
xorl %r13d, %r13d
testl %r8d, %r8d
cmovgl %r8d, %r13d
movl %r9d, %eax
leaq 0x4(,%rax,4), %rbx
subl $0x1, %r13d
jb 0x63fa
movq %r12, %rdi
movl %r14d, %esi
movl -0x2c(%rbp), %edx
callq 0x62bc
movl %r15d, (%rax,%rbx)
incl %r14d
jmp 0x63dd
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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
subq $0x38, %rsp
movq %rcx, -0x48(%rbp)
movq %rdx, -0x60(%rbp)
movq %rdi, -0x50(%rbp)
movl (%rsi), %eax
xorl %ecx, %ecx
testl %eax, %eax
cmovlel %ecx, %eax
movl %eax, -0x38(%rbp)
movq %rsi, -0x58(%rbp)
movl 0x4(%rsi), %eax
testl %eax, %eax
cmovlel %ecx, %eax
movl %eax, -0x30(%rbp)
movq -0x50(%rbp), %rbx
cmpl -0x30(%rbp), %ecx
je 0x64dd
movq -0x48(%rbp), %rax
movq %rcx, -0x40(%rbp)
addl %ecx, %eax
movl %eax, -0x34(%rbp)
xorl %r14d, %r14d
cmpl %r14d, -0x38(%rbp)
je 0x64d2
movq -0x60(%rbp), %rax
leal (%rax,%r14), %r15d
movq -0x58(%rbp), %rdi
movl %r14d, %esi
movq -0x40(%rbp), %rdx
callq 0x62bc
movq %rax, %r13
movb (%rax), %al
movb %al, -0x2c(%rbp)
movq %rbx, %rdi
movl %r15d, %esi
movl -0x34(%rbp), %r12d
movl %r12d, %edx
callq 0x62bc
movb -0x2c(%rbp), %cl
movb %cl, (%rax)
movl 0x4(%r13), %eax
movl %eax, -0x2c(%rbp)
movq %rbx, %rdi
movl %r15d, %esi
movl %r12d, %edx
callq 0x62bc
movl -0x2c(%rbp), %ecx
movl %ecx, 0x4(%rax)
movl 0x8(%r13), %r13d
movq %rbx, %rdi
movl %r15d, %esi
movl %r12d, %edx
callq 0x62bc
movl %r13d, 0x8(%rax)
incl %r14d
jmp 0x645f
movq -0x40(%rbp), %rcx
incl %ecx
jmp 0x6446
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/disjukr[P]Tetris/Console.cc
// Function: Console::SetEcho(bool)
void Console::SetEcho(bool echo) {
#ifdef _WIN32
    echo;
#else
    struct termios stdIn;
    tcgetattr(STDIN_FILENO, &stdIn);
    stdIn.c_lflag &= ~ECHO;
    stdIn.c_lflag |= echo ? ECHO : 0;
    tcsetattr(STDIN_FILENO, TCSANOW, &stdIn);
#endif
    return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movl %edi, %ebx
leaq -0x4c(%rbp), %r14
xorl %edi, %edi
movq %r14, %rsi
callq 0x3150
movl 0xc(%r14), %eax
andl $-0x9, %eax
leal (%rax,%rbx,8), %eax
movl %eax, 0xc(%r14)
xorl %edi, %edi
xorl %esi, %esi
movq %r14, %rdx
callq 0x3190
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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
xorl %ebx, %ebx
movb $0x1, %r15b
decl %edi
movb $0x1, %r12b
movl $0x0, %r14d
cmpl $0x8, %edi
ja 0x6671
leaq 0xeb3(%rip), %rax       # 0x74f4
movslq (%rax,%rdi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
pushq $0x61
jmp 0x666c
pushq $0x60
jmp 0x666c
pushq $0x1e
jmp 0x666c
pushq $0x5e
jmp 0x666c
pushq $0x5b
jmp 0x666c
pushq $0x5a
jmp 0x666c
pushq $0x5c
jmp 0x666c
pushq $0x5f
jmp 0x666c
pushq $0x5d
popq %r14
xorl %r12d, %r12d
decl %esi
cmpl $0x8, %esi
ja 0x66ae
leaq 0xe99(%rip), %rax       # 0x7518
movslq (%rax,%rsi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
pushq $0x6b
jmp 0x66aa
pushq $0x6a
jmp 0x66aa
pushq $0x28
jmp 0x66aa
pushq $0x68
jmp 0x66aa
pushq $0x65
jmp 0x66aa
pushq $0x2f
jmp 0x66aa
pushq $0x66
jmp 0x66aa
pushq $0x69
jmp 0x66aa
pushq $0x67
popq %rbx
xorl %r15d, %r15d
movq 0x4923(%rip), %rdi      # 0xafd8
leaq 0xe8e(%rip), %rsi       # 0x754a
callq 0x3130
testb %r12b, %r12b
jne 0x66d5
movq 0x490b(%rip), %rdi      # 0xafd8
movl %r14d, %esi
callq 0x3220
testb %r15b, %r15b
jne 0x66f3
movq 0x48f7(%rip), %rdi      # 0xafd8
pushq $0x3b
popq %rsi
callq 0x3170
movq %rax, %rdi
movl %ebx, %esi
callq 0x3220
movq 0x48de(%rip), %rdi      # 0xafd8
leaq 0xe4f(%rip), %rsi       # 0x7550
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x3130
// File: /workspace/github_cpp_makefile_star2_O2/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 0x4a25(%rip), %rbx      # 0xb160
movq %rbx, %rdi
callq 0x62aa
movl %eax, %r14d
movq %rbx, %rdi
callq 0x62b2
xorl %r12d, %r12d
testl %r14d, %r14d
cmovlel %r12d, %r14d
testl %eax, %eax
cmovlel %r12d, %eax
movl %eax, -0x2c(%rbp)
cmpl -0x2c(%rbp), %r12d
je 0x67d5
xorl %r15d, %r15d
cmpl %r15d, %r14d
je 0x67c4
movq %rbx, %rdi
movl %r15d, %esi
movl %r12d, %edx
xorl %ecx, %ecx
callq 0x62fa
movl %eax, %r13d
movq %rbx, %rdi
movl %r15d, %esi
movl %r12d, %edx
pushq $0x1
popq %rcx
callq 0x62fa
movl %r13d, %edi
movl %eax, %esi
callq 0x661a
movq %rbx, %rdi
movl %r15d, %esi
movl %r12d, %edx
callq 0x62ec
movsbl %al, %esi
movq 0x4823(%rip), %rdi      # 0xafd8
callq 0x3040
callq 0x670e
incl %r15d
jmp 0x676a
movq 0x480d(%rip), %rdi      # 0xafd8
callq 0x30c0
incl %r12d
jmp 0x6761
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/disjukr[P]Tetris/Keyboard.cc
// Function: kbhit()
int _kbhit() {
    struct termios oldt, newt;
    int ch;
    int oldf;
    tcgetattr(STDIN_FILENO, &oldt);
    newt = oldt;
    newt.c_lflag &= ~(ICANON | ECHO);
    tcsetattr(STDIN_FILENO, TCSANOW, &newt);
    oldf = fcntl(STDIN_FILENO, F_GETFL, 0);
    fcntl(STDIN_FILENO, F_SETFL, oldf | O_NONBLOCK);
    ch = getchar();
    tcsetattr(STDIN_FILENO, TCSANOW, &oldt);
    fcntl(STDIN_FILENO, F_SETFL, oldf);
    if(ch != EOF) {
        ungetc(ch, stdin);
        return 1;
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
xorl %ebx, %ebx
leaq -0xac(%rbp), %r14
xorl %edi, %edi
movq %r14, %rsi
callq 0x3150
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups 0x20(%r14), %xmm2
movups 0x2c(%r14), %xmm3
leaq -0x70(%rbp), %rdx
movaps %xmm0, (%rdx)
movaps %xmm1, 0x10(%rdx)
movaps %xmm2, 0x20(%rdx)
movups %xmm3, 0x2c(%rdx)
andb $-0xb, 0xc(%rdx)
xorl %edi, %edi
xorl %esi, %esi
callq 0x3190
pushq $0x3
popq %rsi
xorl %edi, %edi
xorl %edx, %edx
xorl %eax, %eax
callq 0x30e0
movl %eax, %r12d
movl %eax, %edx
orl $0x800, %edx            # imm = 0x800
pushq $0x4
popq %r13
xorl %edi, %edi
movl %r13d, %esi
xorl %eax, %eax
callq 0x30e0
callq 0x31b0
movl %eax, %r15d
xorl %edi, %edi
xorl %esi, %esi
movq %r14, %rdx
callq 0x3190
xorl %edi, %edi
movl %r13d, %esi
movl %r12d, %edx
xorl %eax, %eax
callq 0x30e0
cmpl $-0x1, %r15d
je 0x6a59
movq 0x4585(%rip), %rax      # 0xafd0
movq (%rax), %rsi
movl %r15d, %edi
callq 0x3050
pushq $0x1
popq %rbx
movl %ebx, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x6998
testl %eax, %eax
je 0x6b0a
callq 0x31b0
movzbl %al, %ecx
pushq $0x7
popq %rax
leal -0x41(%rcx), %edx
cmpl $0x25, %edx
ja 0x6ab8
leaq 0xaa9(%rip), %rcx       # 0x7554
movslq (%rcx,%rdx,4), %rdx
addq %rcx, %rdx
jmpq *%rdx
pushq $0x8
jmp 0x6b0c
leal -0x71(%rcx), %edx
cmpl $0x9, %edx
ja 0x6ad4
leaq 0xb25(%rip), %rcx       # 0x75ec
movslq (%rcx,%rdx,4), %rdx
addq %rcx, %rdx
jmpq *%rdx
pushq $0x6
jmp 0x6b0c
cmpl $0x20, %ecx
je 0x6b2f
cmpl $0x1b, %ecx
jne 0x6b0a
callq 0x6998
testl %eax, %eax
je 0x6b33
callq 0x31b0
cmpb $0x5b, %al
jne 0x6ad0
callq 0x31b0
addb $-0x41, %al
cmpb $0x4, %al
jae 0x6ad0
movzbl %al, %eax
leaq 0xb0f(%rip), %rcx       # 0x7614
movl (%rcx,%rax,4), %eax
jmp 0x6b0d
pushq $0x11
popq %rax
popq %rbp
retq
pushq $0xb
jmp 0x6b0c
pushq $0x10
jmp 0x6b0c
pushq $0xa
jmp 0x6b0c
pushq $0xd
jmp 0x6b0c
pushq $0xc
jmp 0x6b0c
pushq $0x9
jmp 0x6b0c
pushq $0xf
jmp 0x6b0c
pushq $0xe
jmp 0x6b0c
pushq $0x4
jmp 0x6b0c
pushq $0x5
jmp 0x6b0c
// File: /workspace/github_cpp_makefile_star2_O2/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 0x29b4
movq 0x8(%rsi), %rsi
leaq -0x848(%rbp), %rbx
movq %rbx, %rdi
callq 0x441c
movq %rbx, %rdi
callq 0x480c
xorl %eax, %eax
addq $0x848, %rsp            # imm = 0x848
popq %rbx
popq %rbp
retq
movq (%rsi), %rsi
leaq 0x5646(%rip), %rdi      # 0x8004
xorl %eax, %eax
callq 0x2040
pushq $0x1
popq %rdi
callq 0x2260
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O2/ssubrandon[P]460Project2/SetLimits.cpp
// Function: SetLimits()
void SetLimits ()
{
	// Beginning of resource limit code
	int getrlimit(int resource, struct rlimit *rlim);
	int getrusage(int who, struct rusage *usage);
	int setrlimit(int resource, const struct rlimit *rlim);
	struct rlimit __trl1;
	const int __trl1r = getrlimit(RLIMIT_CPU, & __trl1);
	struct rlimit __trl2 = {20, __trl1.rlim_max};
	const int __trl2r = setrlimit(RLIMIT_CPU, & __trl2);
	struct rlimit __trl3;
	const int __trl3r = getrlimit(RLIMIT_FSIZE, & __trl3);
	struct rlimit __trl4 = {10000000, __trl3.rlim_max};
	const int __trl4r = setrlimit(RLIMIT_FSIZE, & __trl4);
	// End of time limit code
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
leaq -0x50(%rbp), %rbx
xorl %edi, %edi
movq %rbx, %rsi
callq 0x22a0
leaq -0x40(%rbp), %rsi
movq $0x14, (%rsi)
movq 0x8(%rbx), %rax
movq %rax, 0x8(%rsi)
xorl %edi, %edi
callq 0x21e0
pushq $0x1
popq %rbx
leaq -0x30(%rbp), %r14
movl %ebx, %edi
movq %r14, %rsi
callq 0x22a0
leaq -0x20(%rbp), %rsi
movq $0x989680, (%rsi)       # imm = 0x989680
movq 0x8(%r14), %rax
movq %rax, 0x8(%rsi)
movl %ebx, %edi
callq 0x21e0
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/ssubrandon[P]460Project2/LexicalAnalyzer.cpp
// Function: LexicalAnalyzer::~LexicalAnalyzer()
LexicalAnalyzer::~LexicalAnalyzer ()
{
	input.close ();
	cout << errors << " Lexical errors found in input file\n";
	listing << errors << " Lexical errors found in input file\n";
	listing.close();
	debug << errors << " Lexical errors found in input file\n";
	debug.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x400(%rdi), %r14
movq %r14, %rdi
callq 0x2090
movl 0x854(%rbx), %esi
movq 0x8a9d(%rip), %rdi      # 0xbfd8
callq 0x2320
leaq 0x518b(%rip), %rsi      # 0x86d2
movq %rax, %rdi
callq 0x21f0
leaq 0x200(%rbx), %r15
movl 0x854(%rbx), %esi
movq %r15, %rdi
callq 0x2320
leaq 0x5167(%rip), %rsi      # 0x86d2
movq %rax, %rdi
callq 0x21f0
movq %r15, %rdi
callq 0x22b0
movl 0x854(%rbx), %esi
movq %rbx, %rdi
callq 0x2320
leaq 0x5142(%rip), %rsi      # 0x86d2
movq %rax, %rdi
callq 0x21f0
movq %rbx, %rdi
callq 0x22b0
leaq 0x858(%rbx), %rdi
callq 0x4048
leaq 0x830(%rbx), %rdi
callq 0x2398
leaq 0x808(%rbx), %rdi
callq 0x2398
leaq 0x608(%rbx), %rdi
callq 0x22d0
movq %r14, %rdi
callq 0x20c0
movq %r15, %rdi
callq 0x22d0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x22d0
movq %rax, %rdi
callq 0x4011
// File: /workspace/github_cpp_makefile_star2_O2/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 $0x58, %rsp
movq %rsi, %rbx
movq %rdi, %r15
addq $0x18, %rdi
movq %rdi, -0x38(%rbp)
callq 0x2240
leaq 0x220(%r15), %r14
movq %r14, %rdi
callq 0x2310
leaq 0x420(%r15), %r12
movq %r12, %rdi
movq %r14, -0x30(%rbp)
callq 0x2310
leaq 0x620(%r15), %r13
movq %r13, %rdi
callq 0x2310
leaq 0x830(%r15), %rax
movq %rax, 0x820(%r15)
andq $0x0, 0x828(%r15)
movb $0x0, 0x830(%r15)
movl $0x888, %edi            # imm = 0x888
callq 0x2200
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2a38
movq %r14, 0x8(%r15)
leaq 0x4183(%rip), %rsi      # 0x8635
leaq -0x78(%rbp), %rdi
leaq -0x58(%rbp), %rdx
callq 0x3e7a
leaq -0x78(%rbp), %r14
movb (%rbx), %al
cmpb $0x2e, %al
je 0x44d9
movsbl %al, %esi
movq %r14, %rdi
callq 0x21b0
incq %rbx
jmp 0x44c3
movq 0x8(%r15), %rdi
callq 0x35fa
movl %eax, 0x10(%r15)
leaq 0x43a7(%rip), %rdx      # 0x8894
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x7682
leaq -0x58(%rbp), %rsi
pushq $0x10
popq %rdx
movq %r12, %rdi
callq 0x2120
leaq -0x58(%rbp), %rdi
callq 0x2398
movq %r15, %rdi
callq 0x45b4
movl %eax, (%r15)
leaq -0x78(%rbp), %rdi
callq 0x2398
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x2398
jmp 0x4572
jmp 0x456f
jmp 0x4559
movq %rax, %rbx
movl $0x888, %esi            # imm = 0x888
movq %r14, %rdi
callq 0x2210
jmp 0x457b
movq %rax, %rbx
jmp 0x457b
movq %rax, %rbx
jmp 0x4592
movq %rax, %rbx
jmp 0x459a
movq %rax, %rbx
jmp 0x45a3
jmp 0x456f
movq %rax, %rbx
leaq -0x78(%rbp), %rdi
callq 0x2398
addq $0x820, %r15            # imm = 0x820
movq %r15, %rdi
callq 0x2398
movq %r13, %rdi
callq 0x22d0
movq %r12, %rdi
callq 0x22d0
movq -0x30(%rbp), %rdi
callq 0x22d0
movq -0x38(%rbp), %rdi
callq 0x20c0
movq %rbx, %rdi
callq 0x2330
// File: /workspace/github_cpp_makefile_star2_O2/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 0x77b6(%rip), %rdi      # 0xbfd8
callq 0x2320
leaq 0x406b(%rip), %rsi      # 0x8899
movq %rax, %rdi
callq 0x21f0
movl $0x200, %edi            # imm = 0x200
addq 0x8(%rbx), %rdi
movl (%rbx), %esi
callq 0x2320
leaq 0x404c(%rip), %rsi      # 0x8899
movq %rax, %rdi
callq 0x21f0
movq 0x8(%rbx), %rdi
movl (%rbx), %esi
callq 0x2320
leaq 0x4032(%rip), %rsi      # 0x8899
movq %rax, %rdi
callq 0x21f0
leaq 0x420(%rbx), %r14
movq %r14, %rdi
callq 0x22b0
movq 0x8(%rbx), %r15
testq %r15, %r15
je 0x488f
movq %r15, %rdi
callq 0x3512
movl $0x888, %esi            # imm = 0x888
movq %r15, %rdi
callq 0x2210
leaq 0x820(%rbx), %rdi
callq 0x2398
leaq 0x620(%rbx), %rdi
callq 0x22d0
movq %r14, %rdi
callq 0x22d0
leaq 0x220(%rbx), %rdi
callq 0x22d0
addq $0x18, %rbx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x20c0
movq %rax, %rdi
callq 0x4011
// File: /workspace/github_cpp_makefile_star2_O2/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, %rbx
leaq 0x420(%rdi), %r14
leaq 0x2838(%rip), %rsi      # 0x8f36
movq %r14, %rdi
callq 0x21f0
movq %rax, %r15
movq 0x8(%rbx), %rsi
movl 0x10(%rbx), %edx
leaq -0x40(%rbp), %r12
movq %r12, %rdi
callq 0x3df8
movq %r15, %rdi
movq %r12, %rsi
callq 0x21d0
leaq 0x21c2(%rip), %rsi      # 0x88f0
movq %rax, %rdi
callq 0x21f0
movq %rax, %r15
movq 0x8(%rbx), %rsi
leaq -0x60(%rbp), %rdi
callq 0x3e22
leaq -0x60(%rbp), %rsi
movq %r15, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x2130
leaq -0x60(%rbp), %rdi
callq 0x2398
leaq -0x40(%rbp), %rdi
callq 0x2398
leaq 0x27f4(%rip), %rsi      # 0x8f67
movq %r14, %rdi
callq 0x21f0
movq %rax, %rdi
callq 0x2130
movq %rbx, %rdi
callq 0x69f8
movl %eax, %r15d
leaq 0x27e0(%rip), %rsi      # 0x8f75
movq %r14, %rdi
callq 0x21f0
movq %rax, %r14
movq 0x8(%rbx), %rsi
movl 0x10(%rbx), %edx
leaq -0x40(%rbp), %rbx
movq %rbx, %rdi
callq 0x3df8
movq %r14, %rdi
movq %rbx, %rsi
callq 0x21d0
movq %rax, %rdi
callq 0x2130
leaq -0x40(%rbp), %rdi
callq 0x2398
movl %r15d, %eax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x67f1
jmp 0x67f1
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x2398
jmp 0x67f4
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x2398
movq %rbx, %rdi
callq 0x2330
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x1cd0
testq %rax, %rax
jne 0x1b6b
leaq 0x10(%rsp), %r9
movq %r12, (%r9)
leaq 0xf(%rsp), %rax
movq %rax, (%rsp)
leaq 0x15d3(%rip), %r8       # 0x310e
leaq 0x18(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x1b78
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_O2/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:
pushq %r15
pushq %r14
pushq %rbx
movq %rcx, %r15
movq %rsi, %r14
movq %rdi, %rbx
callq 0x1d1e
testq %rax, %rax
je 0x1cee
addq $0xc, %rax
jmp 0x1d18
testb $0x2, (%r15)
jne 0x1cf8
xorl %eax, %eax
jmp 0x1d18
leaq 0x20(%rbx), %rdi
movq %r14, %rsi
callq 0x1d46
movq %rax, %rcx
addq $0x28, %rbx
leaq 0x24(%rax), %rdx
xorl %eax, %eax
cmpq %rbx, %rcx
cmovneq %rdx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 %rax
cmpl $0x0, 0x15d2c(%rip)     # 0x1a2f0
je 0x45d4
leaq 0x15cab(%rip), %rsi     # 0x1a278
callq 0xac0c
jmp 0x45e0
leaq 0x15c9d(%rip), %rsi     # 0x1a278
callq 0x9bce
testb %al, %al
je 0x465d
movl 0x16586(%rip), %eax     # 0x1ab70
movl 0x1659c(%rip), %ecx     # 0x1ab8c
movl 0x16599(%rip), %r8d     # 0x1ab90
movb 0x1659b(%rip), %dl      # 0x1ab98
movq 0x16514(%rip), %rsi     # 0x1ab18
movq 0x1651d(%rip), %rdi     # 0x1ab28
movq 0x164fe(%rip), %r9      # 0x1ab10
xorl %r10d, %r10d
testl %eax, %eax
cmovlel %r10d, %eax
cmpq %r10, %rax
je 0x4661
movq %r9, %r11
testb %dl, %dl
je 0x462f
movslq (%rdi,%r10,4), %r11
leaq (%rsi,%r11,4), %r11
cmpl $0x0, (%r11)
jns 0x4654
incl %ecx
movl %ecx, 0x1654f(%rip)     # 0x1ab8c
cmpl $-0x1, %r8d
jne 0x464d
movl %r10d, 0x16546(%rip)    # 0x1ab90
movl %r10d, %r8d
movl %r10d, 0x16540(%rip)    # 0x1ab94
incq %r10
addq $0x4, %r9
jmp 0x461b
xorl %eax, %eax
jmp 0x4663
movb $0x1, %al
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x85d9(%rip), %rax      # 0xbcc0
movq %rax, (%rdi)
leaq 0x10(%rdi), %rax
andl $0x0, 0x10(%rdi)
andq $0x0, 0x18(%rdi)
movq %rax, 0x20(%rdi)
movq %rax, 0x28(%rdi)
andq $0x0, 0x30(%rdi)
cmpb $0x1, 0x8bbe(%rip)      # 0xc2c9
jne 0x3719
leaq 0x4a14(%rip), %rdi      # 0x8128
callq 0x3430
movb $0x0, 0x8ba9(%rip)      # 0xc2c9
movl $0x1, 0x38(%rbx)
movq %rbx, 0x8ba2(%rip)      # 0xc2d0
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x8585(%rip), %rax      # 0xbcc0
movq %rax, (%rdi)
movb 0x8b85(%rip), %al       # 0xc2c9
cmpb $0x1, %al
jne 0x375f
movl 0x30(%rbx), %esi
leaq 0x48b2(%rip), %rdi      # 0x8004
xorl %eax, %eax
callq 0x3070
movb 0x8b6a(%rip), %al       # 0xc2c9
testb $0x1, %al
je 0x376b
movq %rbx, %rdi
callq 0x379c
cmpq $0x0, 0x30(%rbx)
je 0x3787
movq 0x20(%rbx), %rax
movq 0x28(%rax), %rax
movl 0x8(%rax), %esi
movq %rbx, %rdi
callq 0x3812
jmp 0x376b
addq $0x8, %rbx
movq %rbx, %rdi
popq %rbx
jmp 0x3ddc
movq %rax, %rdi
callq 0x3d1d
// File: /workspace/github_cpp_makefile_star2_O2/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 0x486d(%rip), %rdi      # 0x801d
xorl %eax, %eax
callq 0x3070
leaq 0x497d(%rip), %rdi      # 0x813b
callq 0x3430
movq 0x20(%rbx), %r14
addq $0x10, %rbx
pushq $0x1
popq %rbp
leaq 0x486f(%rip), %r15      # 0x8044
cmpq %rbx, %r14
je 0x3800
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 0x31f0
movq %rax, %r14
jmp 0x37d5
pushq $0xa
popq %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x33b0
// File: /workspace/github_cpp_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
movq %rdi, %r14
movl %esi, 0xc(%rsp)
callq 0x3a20
testq %rax, %rax
je 0x3883
movq %rax, %r15
cmpb $0x1, 0x8a91(%rip)      # 0xc2c9
jne 0x3851
movq 0x18(%r15), %rcx
leaq 0x4892(%rip), %rdi      # 0x80d7
movl %ebx, %esi
movq %r15, %rdx
xorl %eax, %eax
callq 0x3070
movq 0x18(%r15), %rdi
testq %rdi, %rdi
je 0x385f
callq 0x3380
addq $0x8, %r14
leaq 0xc(%rsp), %rsi
movq %r14, %rdi
callq 0x40d0
movq (%r15), %rax
movq %r15, %rdi
callq *0x8(%rax)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq 0x8736(%rip), %r14      # 0xbfc0
movq (%r14), %rdi
leaq 0x47f3(%rip), %rsi      # 0x8087
leaq 0x4805(%rip), %rcx      # 0x80a0
pushq $0x6e
popq %rdx
xorl %eax, %eax
callq 0x33c0
movq (%r14), %rdi
leaq 0x480c(%rip), %rsi      # 0x80bb
movl %ebx, %edx
xorl %eax, %eax
callq 0x33c0
pushq $-0x1
popq %rdi
callq 0x3340
// File: /workspace/github_cpp_makefile_star2_O2/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, %r12
movl %esi, %ebp
movq %rdi, %r14
xorl %eax, %eax
testl %esi, %esi
movl $0x0, %edx
cmovgl %esi, %edx
pushq $0x1
popq %rcx
cmpq %rax, %rdx
je 0x3943
imull (%r12,%rax,4), %ecx
incq %rax
jmp 0x3934
movslq %ecx, %rax
shlq $0x2, %rax
testl %ecx, %ecx
pushq $-0x1
popq %rdi
cmovnsq %rax, %rdi
callq 0x3030
movq %rax, %r15
movl 0x38(%r14), %ebx
leal 0x1(%rbx), %eax
movl %eax, 0x38(%r14)
movl %ebx, 0xc(%rsp)
pushq $0x20
popq %rdi
callq 0x3280
movq %rax, %r13
movq %rax, %rdi
movl %ebx, %esi
movl %ebp, %edx
movq %r12, %rcx
movq %r15, %r8
callq 0x3d28
addq $0x8, %r14
leaq 0xc(%rsp), %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3d8e
movq %r13, (%rax)
movl (%rbx), %esi
movq 0x10(%rsp), %rax
movl %esi, (%rax)
cmpb $0x1, 0x891b(%rip)      # 0xc2c9
jne 0x39c5
movq 0x18(%r13), %rcx
leaq 0x46a5(%rip), %rdi      # 0x8060
movq %r13, %rdx
xorl %eax, %eax
callq 0x3070
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
pushq $0x20
popq %rsi
movq %r13, %rdi
callq 0x3290
movq %rbx, %rdi
callq 0x34c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x4(%rsp), %rax
movl %esi, (%rax)
leaq 0x8(%rdi), %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4254
addq $0x10, %r14
cmpq %r14, %rax
je 0x3a58
leaq 0x4(%rsp), %rsi
movq %rbx, %rdi
callq 0x3d8e
movq (%rax), %rax
jmp 0x3a5a
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 %rsi, %r14
movq %rdi, %r15
movq 0x20(%rdi), %rax
addq $0x10, %r15
pushq $-0x1
popq %rbx
cmpq %r15, %rax
je 0x3a94
movq 0x28(%rax), %rcx
cmpq %r14, 0x18(%rcx)
je 0x3a91
movq %rax, %rdi
callq 0x31f0
jmp 0x3a78
movl 0x8(%rcx), %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/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
movl %esi, %ebp
movq %rdi, %r14
movq 0x20(%rdi), %rax
addq $0x10, %r14
decl %ebp
xorl %ebx, %ebx
cmpq %r14, %rax
je 0x3ac9
subl $0x1, %ebp
jb 0x3ac5
movq %rax, %rdi
callq 0x31f0
jmp 0x3ab1
movq 0x28(%rax), %rbx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rdi
movq %rsi, %r14
leaq 0x4615(%rip), %rsi      # 0x80ff
callq 0x3320
movq %rax, %rbx
leaq 0xc(%r14), %r15
movl 0xc(%r14), %eax
xorl %ecx, %ecx
testl %eax, %eax
cmovlel %ecx, %eax
pushq $0x1
popq %rbp
cmpq %rcx, %rax
je 0x3b16
movq 0x10(%r14), %rdx
imull (%rdx,%rcx,4), %ebp
incq %rcx
jmp 0x3b04
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
movq %r15, %rdi
movq %rbx, %rcx
callq 0x3520
xorl %r12d, %r12d
xorl %r13d, %r13d
movslq (%r15), %rax
cmpq %rax, %r13
jge 0x3b53
movq 0x10(%r14), %rdi
addq %r12, %rdi
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x3520
incq %r13
addq $0x4, %r12
jmp 0x3b2d
movq 0x18(%r14), %rdi
movslq %ebp, %r14
pushq $0x4
popq %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x3520
cmpq %r14, %rax
jne 0x3b83
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3270
movq 0x8436(%rip), %rax      # 0xbfc0
movq (%rax), %rcx
leaq 0x456e(%rip), %rdi      # 0x8102
pushq $0xd
popq %rsi
pushq $0x1
popq %rdx
callq 0x3520
pushq $-0x1
popq %rdi
callq 0x3340
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x4554(%rip), %rsi      # 0x8110
callq 0x3320
testq %rax, %rax
je 0x3c1d
movq %rax, %rbx
leaq 0x4(%rsp), %r15
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
movq %r15, %rdi
movq %rax, %rcx
callq 0x3410
movslq (%r15), %r15
cmpl 0xc(%r14), %r15d
jne 0x3c21
movq 0x10(%r14), %rdi
pushq $0x4
popq %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x3410
xorl %eax, %eax
testl %r15d, %r15d
movl $0x0, %ecx
cmovgl %r15d, %ecx
pushq $0x1
popq %rbp
cmpq %rax, %rcx
je 0x3c2e
movq 0x10(%r14), %rdx
imull (%rdx,%rax,4), %ebp
incq %rax
jmp 0x3c0b
pushq $-0x1
jmp 0x3c2b
movq %rbx, %rdi
callq 0x3270
pushq $-0x2
popq %rax
jmp 0x3c79
movq 0x18(%r14), %rdi
testq %rdi, %rdi
je 0x3c3c
callq 0x3380
movslq %ebp, %r15
leaq (,%r15,4), %rax
testl %ebp, %ebp
pushq $-0x1
popq %rdi
cmovnsq %rax, %rdi
callq 0x3030
movq %rax, 0x18(%r14)
pushq $0x4
popq %rsi
movq %rax, %rdi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x3410
cmpq %r15, %rax
jne 0x3c84
movq %rbx, %rdi
callq 0x3270
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x8335(%rip), %rax      # 0xbfc0
movq (%rax), %rcx
leaq 0x447e(%rip), %rdi      # 0x8113
pushq $0xc
popq %rsi
pushq $0x1
popq %rdx
callq 0x3520
pushq $-0x3
jmp 0x3c2b
// File: /workspace/github_cpp_makefile_star2_O2/jpbalarini[P]otsus/./framework/CFramework.cpp
// Function: CFramework::print_backtrace(_IO_FILE*)
void CFramework::print_backtrace(FILE *out) {
    const size_t max_depth = 100;
    size_t stack_depth;
    void *stack_addrs[max_depth];
    char **stack_strings;

    stack_depth = backtrace(stack_addrs, max_depth);
    stack_strings = backtrace_symbols(stack_addrs, stack_depth);

    for (size_t i = 1; i < stack_depth; i++)
        fprintf(out, "    %s\n", stack_strings[i]);

    free(stack_strings); // malloc()ed by backtrace_symbols
    fflush(out);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x320, %rsp            # imm = 0x320
movq %rsi, %rbx
movq %rsp, %r15
pushq $0x64
popq %rsi
movq %r15, %rdi
callq 0x33f0
movslq %eax, %r14
movq %r15, %rdi
movl %r14d, %esi
callq 0x3400
movq %rax, %r15
pushq $0x1
popq %r13
leaq 0x443f(%rip), %r12      # 0x8120
cmpq %r14, %r13
jae 0x3cfc
movq (%r15,%r13,8), %rdx
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x33c0
incq %r13
jmp 0x3ce1
movq %r15, %rdi
callq 0x3330
movq %rbx, %rdi
callq 0x3310
addq $0x320, %rsp            # imm = 0x320
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/jpbalarini[P]otsus/./framework/CFramework.h
// Function: MatrixInfo::MatrixInfo(int, int, int*, float*)
MatrixInfo(int id, int num_dims, int *N, float *data) {
      this->id = id;
      this->num_dims = num_dims;
      //
      this->N = new int[num_dims];
      for (int i = 0; i < num_dims; i++) {
        this->N[i] = N[i];
      }
      //
      this->data = data;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r8, %rbx
movq %rcx, %r14
movl %edx, %r15d
movq %rdi, %r12
leaq 0x7fac(%rip), %rax      # 0xbcf0
movq %rax, (%rdi)
movl %esi, 0x8(%rdi)
movl %edx, 0xc(%rdi)
movl %edx, %eax
shlq $0x2, %rax
xorl %r13d, %r13d
testl %edx, %edx
pushq $-0x1
popq %rdi
cmovnsq %rax, %rdi
cmovlel %r13d, %r15d
callq 0x3030
movq %rax, 0x10(%r12)
cmpq %r13, %r15
je 0x3d7f
movl (%r14,%r13,4), %ecx
movl %ecx, (%rax,%r13,4)
incq %r13
jmp 0x3d6d
movq %rbx, 0x18(%r12)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/jpbalarini[P]otsus/./framework/CImage.cpp
// Function: CImage::create_channels(int, int, int)
void CImage::create_channels(int num_channels, int Nx, int Ny) {
  CFramework *fw = CFramework::get_framework();

  this->channels_id = new int[num_channels];

  int N[2] = {Nx, Ny};  
  for (int ch = 0; ch < num_channels; ch++) {
    int id_matrix;
    fw->create_matrix(2, N, id_matrix);
    this->channels_id[ch] = id_matrix;
    PRINT_VERBOSE("I_%d creates matrix M_%d\n", this->id, id_matrix);
  }
  this->num_channels = num_channels;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %r13d
movl %edx, %ebp
movl %esi, %r12d
movq %rdi, %r14
callq 0x38d6
movq %rax, %r15
movl %r12d, %eax
shlq $0x2, %rax
testl %r12d, %r12d
pushq $-0x1
popq %rdi
cmovnsq %rax, %rdi
movl $0x0, %ebx
movl %r12d, 0x8(%rsp)
cmovgl %r12d, %ebx
callq 0x3030
movq %rax, 0x10(%r14)
leaq 0x10(%rsp), %rax
movl %ebp, (%rax)
movl %r13d, 0x4(%rax)
leaq 0xc(%rsp), %r13
leaq 0x7b45(%rip), %r12      # 0xc2c9
xorl %ebp, %ebp
cmpq %rbp, %rbx
je 0x47c7
movq %r15, %rdi
pushq $0x2
popq %rsi
leaq 0x10(%rsp), %rdx
movq %r13, %rcx
callq 0x390a
movl 0xc(%rsp), %edx
movq 0x10(%r14), %rax
movl %edx, (%rax,%rbp,4)
cmpb $0x1, (%r12)
jne 0x47c2
movl 0xc(%r14), %esi
leaq 0x3a87(%rip), %rdi      # 0x8242
xorl %eax, %eax
callq 0x3070
incq %rbp
jmp 0x4786
movl 0x8(%rsp), %eax
movl %eax, 0x18(%r14)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/jpbalarini[P]otsus/./framework/CImage.cpp
// Function: CImage::CImage()
CImage::CImage() {
  this->unique_id++;
  this->id = this->unique_id;
  this->channels_id = NULL;
  PRINT_VERBOSE("CImage created, I_%d\n", this->id);
}

// Assembly:
movl 0x7af8(%rip), %esi      # 0xc2dc
incl %esi
movl %esi, 0x7af0(%rip)      # 0xc2dc
movl %esi, 0xc(%rdi)
andq $0x0, 0x10(%rdi)
leaq 0x7ace(%rip), %rax      # 0xc2c9
cmpb $0x1, (%rax)
jne 0x480e
leaq 0x3a55(%rip), %rdi      # 0x825c
xorl %eax, %eax
jmp 0x3070
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/jpbalarini[P]otsus/./framework/CImage.cpp
// Function: CImage::CImage(int, int, int, int)
CImage::CImage(int Nx, int Ny,
               int bits, int num_channels) {
  this->unique_id++;
  this->id = this->unique_id;
  //
  this->Nx = Nx;
  this->Ny = Ny;
  this->bits = bits;
  //
  PRINT_VERBOSE("CImage I_%d, %dx%d, %d bits, %d channels created\n",
    this->id, this->Nx, this->Ny, this->bits, num_channels);

  // Create data channels
  this->create_channels(num_channels, Nx, Ny);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %r8d, %ebp
movl %edx, %ebx
movl %esi, %r14d
movq %rdi, %r15
movl 0x7ab4(%rip), %esi      # 0xc2dc
incl %esi
movl %esi, 0x7aac(%rip)      # 0xc2dc
movl %esi, 0xc(%rdi)
movl %r14d, (%rdi)
movl %edx, 0x4(%rdi)
movl %ecx, 0x8(%rdi)
leaq 0x7a86(%rip), %rax      # 0xc2c9
cmpb $0x1, (%rax)
jne 0x4861
movl %ecx, %r8d
leaq 0x3a20(%rip), %rdi      # 0x8272
movl %r14d, %edx
movl %ebx, %ecx
movl %ebp, %r9d
xorl %eax, %eax
callq 0x3070
movq %r15, %rdi
movl %ebp, %esi
movl %r14d, %edx
movl %ebx, %ecx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x4724
// File: /workspace/github_cpp_makefile_star2_O2/jpbalarini[P]otsus/./framework/CImage.cpp
// Function: CImage::~CImage()
CImage::~CImage() {
  PRINT_VERBOSE("CImage I_%d destroy\n", this->id);
  CFramework *fw = CFramework::get_framework();
  for (int ch = 0; ch < this->get_num_channels(); ch++) {
    int id_channel = this->channels_id[ch];
    fw->delete_matrix(id_channel);
  }
  if (this->channels_id != NULL)
    delete[] this->channels_id;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x7a40(%rip), %rax      # 0xc2c9
cmpb $0x1, (%rax)
jne 0x489f
movl 0xc(%rbx), %esi
leaq 0x3a0c(%rip), %rdi      # 0x82a4
xorl %eax, %eax
callq 0x3070
callq 0x38d6
movq %rax, %r14
xorl %r15d, %r15d
movslq 0x18(%rbx), %rax
movq 0x10(%rbx), %rdi
cmpq %rax, %r15
jge 0x48c8
movl (%rdi,%r15,4), %esi
movq %r14, %rdi
callq 0x3812
incq %r15
jmp 0x48aa
testq %rdi, %rdi
je 0x48d7
popq %rbx
popq %r14
popq %r15
jmp 0x3380
popq %rbx
popq %r14
popq %r15
retq
jmp 0x48df
movq %rax, %rdi
callq 0x3d1d
nop