LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/daklqw[P]beepmania/track.cpp
// Function: track::checkhit(long)
bool track::checkhit(clock_t now) {
	if (cur == (int)notes.size()) return false;
	int delta = notes[cur].tick - (now - checkdelta);
	int res = match(delta);
	if (res == -1) return false;
	++cur;
	sb->push(res);
	if (res != TAG_BAD) sb->pushdelta(delta);
	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movslq 0x58(%rdi), %r14
movq 0x40(%rdi), %rax
movq 0x48(%rdi), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
cmpl %ecx, %r14d
je 0x5936
movq %rdi, %rbx
movl 0x20(%rdi), %ebp
subl %esi, %ebp
addl (%rax,%r14,8), %ebp
movl %ebp, %esi
callq 0x5948
cmpl $-0x1, %eax
je 0x5936
movl %eax, %r15d
incl %r14d
movl %r14d, 0x58(%rbx)
movq 0x60(%rbx), %rdi
movl %eax, %esi
callq 0x4f70
movb $0x1, %r14b
cmpl $0x4, %r15d
je 0x5939
movq 0x60(%rbx), %rdi
movl %ebp, %esi
callq 0x4ffe
jmp 0x5939
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/daklqw[P]beepmania/track.cpp
// Function: track::match(int)
int track::match(int dta) {
	if (std::abs(dta) <= perfect) return TAG_PERFECT;
	if (std::abs(dta) <= great) return TAG_GREAT;
	if (std::abs(dta) <= good) return TAG_GOOD;
	if (std::abs(dta) <= bad) return TAG_BAD;
	return TAG_MISS;
}

// Assembly:
movl %esi, %eax
negl %eax
cmovsl %esi, %eax
cmpl 0x10(%rdi), %eax
jle 0x596c
cmpl 0x14(%rdi), %eax
jle 0x5970
cmpl 0x18(%rdi), %eax
jle 0x5974
xorl %ecx, %ecx
cmpl 0x1c(%rdi), %eax
setle %cl
leal (%rcx,%rcx,4), %eax
decl %eax
retq
pushq $0x1
jmp 0x5976
pushq $0x2
jmp 0x5976
pushq $0x3
popq %rax
retq
// File: /workspace/github_cpp_makefile_star2_O2/daklqw[P]beepmania/track.cpp
// Function: track::checkmiss(long)
bool track::checkmiss(clock_t now) {
	if (cur == (int)notes.size()) return false;
	int res = (now - checkdelta) - notes[cur].tick;
	if (res > bad) {
		++cur;
		sb->push(TAG_BAD);
		return true;
	}
	return false;
}

// Assembly:
movslq 0x58(%rdi), %rax
movq 0x40(%rdi), %rcx
movq 0x48(%rdi), %rdx
subq %rcx, %rdx
shrq $0x3, %rdx
cmpl %edx, %eax
je 0x59b5
movl 0x20(%rdi), %edx
addl (%rcx,%rax,8), %edx
subl %edx, %esi
cmpl %esi, 0x1c(%rdi)
jge 0x59b5
pushq %rax
incl %eax
movl %eax, 0x58(%rdi)
movq 0x60(%rdi), %rdi
pushq $0x4
popq %rsi
callq 0x4f70
movb $0x1, %al
addq $0x8, %rsp
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O2/biotomas[P]ipasir/sat/picosat961/picosat-961/picomus.c
// Function: die
static void die (const char * fmt, ...) {
  va_list ap;
  fputs ("*** picomus: ", stdout);
  va_start (ap, fmt);
  vfprintf (stdout, fmt, ap);
  va_end (ap);
  fputc ('\n', stdout);
  fflush (stdout);
  exit (1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xd0, %rsp
movq %rdi, %rbx
leaq 0x20(%rsp), %r14
movq %rsi, 0x8(%r14)
movq %rdx, 0x10(%r14)
movq %rcx, 0x18(%r14)
movq %r8, 0x20(%r14)
movq %r9, 0x28(%r14)
testb %al, %al
je 0x22b9
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq 0x13d10(%rip), %r15     # 0x15fd0
movq (%r15), %rsi
leaq 0xd569(%rip), %rdi      # 0xf833
callq 0x10e0
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rsp, %rdx
movq %rax, (%rdx)
leaq 0xf0(%rsp), %rax
movq %rax, 0x8(%rdx)
movq %r14, 0x10(%rdx)
movq (%r15), %rdi
movq %rbx, %rsi
callq 0x11b0
movq (%r15), %rsi
pushq $0xa
popq %rdi
callq 0x1110
movq (%r15), %rdi
callq 0x1160
pushq $0x1
popq %rdi
callq 0x11d0
// File: /workspace/github_cpp_makefile_star2_O2/biotomas[P]ipasir/sat/picosat961/picosat-961/picomus.c
// Function: warn
static void warn (const char * fmt, ...) {
  va_list ap;
  if (verbose < 0) return;
  fputs ("c [picomus] WARNING: ", stdout);
  va_start (ap, fmt);
  vfprintf (stdout, fmt, ap);
  va_end (ap);
  fputc ('\n', stdout);
  fflush (stdout);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0xd8, %rsp
movq %rsi, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x40(%rsp)
movq %r9, 0x48(%rsp)
testb %al, %al
je 0x2373
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
cmpl $0x0, 0x13dae(%rip)     # 0x16128
js 0x23d8
movq %rdi, %rbx
movq 0x13c4a(%rip), %r14     # 0x15fd0
movq (%r14), %rsi
leaq 0xd4b1(%rip), %rdi      # 0xf841
callq 0x10e0
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rsp, %rdx
movq %rax, (%rdx)
leaq 0xf0(%rsp), %rax
movq %rax, 0x8(%rdx)
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rdx)
movq (%r14), %rdi
movq %rbx, %rsi
callq 0x11b0
movq (%r14), %rsi
pushq $0xa
popq %rdi
callq 0x1110
movq (%r14), %rdi
callq 0x1160
addq $0xd8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/biotomas[P]ipasir/sat/picosat961/picosat-961/picomus.c
// Function: msg
static void msg (int level, const char * fmt, ...) {
  va_list ap;
  if (verbose < level) return;
  fputs ("c [picomus] ", stdout);
  va_start (ap, fmt);
  vfprintf (stdout, fmt, ap);
  va_end (ap);
  fputc ('\n', stdout);
  fflush (stdout);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0xd8, %rsp
movq %rdx, 0x30(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x40(%rsp)
movq %r9, 0x48(%rsp)
testb %al, %al
je 0x243c
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
cmpl %edi, 0x13ce6(%rip)     # 0x16128
jl 0x24a0
movq %rsi, %rbx
movq 0x13b82(%rip), %r14     # 0x15fd0
movq (%r14), %rsi
leaq 0xd4b2(%rip), %rdi      # 0xf90a
callq 0x10e0
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rsp, %rdx
movq %rax, (%rdx)
leaq 0xf0(%rsp), %rax
movq %rax, 0x8(%rdx)
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rdx)
movq (%r14), %rdi
movq %rbx, %rsi
callq 0x11b0
movq (%r14), %rsi
pushq $0xa
popq %rdi
callq 0x1110
movq (%r14), %rdi
callq 0x1160
addq $0xd8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/biotomas[P]ipasir/sat/picosat961/picosat-961/picomus.c
// Function: callback
static void callback (void * dummy, const int * mus) {
  int remaining;
  const int * p;
  (void) dummy;
  if (verbose <= 0) return;
  remaining = 0;
  for (p = mus; *p; p++) remaining++;
  assert (remaining <= nclauses);
  reductions++;
  msg (1, "reduction %d to %d = %.0f%% out of %d after %.1f sec",
       reductions,
       remaining, percent (remaining, nclauses), nclauses,
       picosat_time_stamp () - start);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
cmpl $0x0, 0x13c6e(%rip)     # 0x16128
jle 0x2542
xorl %ebx, %ebx
cmpl $0x0, (%rsi,%rbx,4)
je 0x24cd
incq %rbx
jmp 0x24c2
movl 0x13c85(%rip), %ebp     # 0x16158
cmpl %ebp, %ebx
jg 0x254b
movl 0x13caa(%rip), %r14d    # 0x16188
incl %r14d
movl %r14d, 0x13ca0(%rip)    # 0x16188
xorpd %xmm1, %xmm1
testl %ebp, %ebp
je 0x2504
cvtsi2sd %ebx, %xmm1
cvtsi2sd %ebp, %xmm0
mulsd 0xcb08(%rip), %xmm1     # 0xf008
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
callq 0x9252
movapd %xmm0, %xmm1
subsd 0x13c05(%rip), %xmm1    # 0x16120
leaq 0xd42e(%rip), %rsi      # 0xf950
pushq $0x1
popq %rdi
movl %r14d, %edx
movl %ebx, %ecx
movsd 0x8(%rsp), %xmm0
movl %ebp, %r8d
movb $0x2, %al
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x23e3
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0xd3c5(%rip), %rdi      # 0xf917
leaq 0xcbf6(%rip), %rsi      # 0xf14f
leaq 0xd3cd(%rip), %rcx      # 0xf92d
movl $0x9d, %edx
callq 0x10d0
// File: /workspace/github_cpp_makefile_star2_O2/jaldhar[P]Lets-Build-a-Simple-Interpreter/calc3.cc
// Function: Interpreter::expression()
long Interpreter::expression() {

    // set current token to the first token taken from the input
    _current_token = get_next_token();

    long result = term();
    while (_current_token.type == TOKENTYPE::PLUS ||
    _current_token.type == TOKENTYPE::MINUS) {
        Token token = _current_token;
        if (token.type == TOKENTYPE::PLUS) {
            eat(TOKENTYPE::PLUS);
            result = result + term();
        } else if (token.type == TOKENTYPE::MINUS) {
            eat(TOKENTYPE::MINUS);
            result = result - term();
        }
    }

    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x2468
movl %eax, 0x18(%rbx)
movq %rdx, 0x20(%rbx)
movq %rbx, %rdi
callq 0x25bc
movq %rax, %r14
pushq $0x2
popq %rbp
pushq $0x3
popq %r15
movl 0x18(%rbx), %eax
movl %eax, %ecx
andl $-0x2, %ecx
cmpl $0x2, %ecx
jne 0x245a
movq %rbx, %rdi
cmpl $0x2, %eax
jne 0x2445
movl %ebp, %esi
callq 0x25ce
movq %rbx, %rdi
callq 0x25bc
addq %rax, %r14
jmp 0x241c
movl %r15d, %esi
callq 0x25ce
movq %rbx, %rdi
callq 0x25bc
subq %rax, %r14
jmp 0x241c
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/jaldhar[P]Lets-Build-a-Simple-Interpreter/calc3.cc
// Function: Interpreter::get_next_token()
Token Interpreter::get_next_token() {

    while (_current_char != '\0') {

        if (isspace(_current_char)) {
            skip_whitespace();
        }

        if (isdigit(_current_char)) {
            Token token(TOKENTYPE::INTEGER, integer());
            cerr << token << endl;
            return token;
        }

        if (_current_char == '+') {
            advance();
            Token token(TOKENTYPE::PLUS, '+');
            cerr << token << endl;
            return token;
        }

        if (_current_char == '-') {
            advance();
            Token token(TOKENTYPE::MINUS, '-');
            cerr << token << endl;
            return token;
        }

        ostringstream out;
        out << "Error parsing input. Got: " << _current_char;
        throw(out.str().c_str());
    }

    Token token(TOKENTYPE::ENDOFFILE, '\0');
    cerr << token << endl;
    return token;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x1b0, %rsp            # imm = 0x1B0
movsbl 0x10(%rdi), %ebp
testl %ebp, %ebp
je 0x2499
movq %rdi, %rbx
movl %ebp, %edi
callq 0x2040
testl %eax, %eax
je 0x24a4
movq %rbx, %rdi
callq 0x26b0
movb 0x10(%rbx), %al
movsbl %al, %ebp
jmp 0x24a6
andl $0x0, 0x8(%rsp)
xorl %ebx, %ebx
xorl %ebp, %ebp
jmp 0x24ff
movl %ebp, %eax
addl $-0x30, %ebp
cmpl $0x9, %ebp
ja 0x24c6
movq %rbx, %rdi
callq 0x26d2
movq %rax, %rbx
movl $0x1, 0x8(%rsp)
pushq $0x1
popq %rbp
jmp 0x24ff
cmpb $0x2d, %al
je 0x24e9
movzbl %al, %eax
cmpl $0x2b, %eax
jne 0x2530
movq %rbx, %rdi
callq 0x2688
movl $0x2, 0x8(%rsp)
pushq $0x2
popq %rbp
pushq $0x2b
jmp 0x24fe
movq %rbx, %rdi
callq 0x2688
movl $0x3, 0x8(%rsp)
pushq $0x3
popq %rbp
pushq $0x2d
popq %rbx
leaq 0x8(%rsp), %rsi
movq %rbx, 0x8(%rsi)
movq 0x2ae1(%rip), %r14      # 0x4ff0
movq %r14, %rdi
callq 0x2382
movq %r14, %rdi
callq 0x20a0
movl %ebp, %eax
movq %rbx, %rdx
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x38(%rsp), %r14
movq %r14, %rdi
callq 0x2160
leaq 0xb06(%rip), %rsi       # 0x304a
movq %r14, %rdi
callq 0x2140
movsbl 0x10(%rbx), %esi
movq %rax, %rdi
callq 0x2150
pushq $0x8
popq %rdi
callq 0x20b0
movq %rax, %r14
leaq 0x40(%rsp), %rsi
leaq 0x18(%rsp), %rdi
callq 0x2190
movq 0x18(%rsp), %rax
movq %rax, (%r14)
movq 0x2a2f(%rip), %rsi      # 0x4fb0
movq %r14, %rdi
xorl %edx, %edx
callq 0x21b0
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x2090
jmp 0x25aa
movq %rax, %rbx
movq %r14, %rdi
callq 0x20e0
jmp 0x25aa
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x2060
movq %rbx, %rdi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O2/jaldhar[P]Lets-Build-a-Simple-Interpreter/calc3.cc
// Function: Interpreter::eat(TOKENTYPE)
void Interpreter::eat(TOKENTYPE token_type) {
    if (_current_token.type == token_type) {
        _current_token = get_next_token();
    } else {
        ostringstream out;
        out << "Error parsing input. Wanted: " << token_type;
        throw(out.str().c_str());
    }
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movl %esi, 0xc(%rsp)
cmpl %esi, 0x18(%rdi)
jne 0x25fb
movq %rdi, %rbx
callq 0x2468
movl %eax, 0x18(%rbx)
movq %rdx, 0x20(%rbx)
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r14
retq
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
callq 0x2160
leaq 0xa1d(%rip), %rsi       # 0x302c
movq %rbx, %rdi
callq 0x2140
leaq 0xc(%rsp), %rsi
movq %rax, %rdi
callq 0x231c
pushq $0x8
popq %rdi
callq 0x20b0
movq %rax, %r14
leaq 0x38(%rsp), %rsi
leaq 0x10(%rsp), %rdi
callq 0x2190
movq 0x10(%rsp), %rax
movq %rax, (%r14)
movq 0x2963(%rip), %rsi      # 0x4fb0
movq %r14, %rdi
xorl %edx, %edx
callq 0x21b0
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2090
jmp 0x2676
movq %rax, %rbx
movq %r14, %rdi
callq 0x20e0
jmp 0x2676
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x2060
movq %rbx, %rdi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O2/jaldhar[P]Lets-Build-a-Simple-Interpreter/calc3.cc
// Function: Interpreter::advance()
void Interpreter::advance() {
    _pos++;
    if (_pos > _text.length() - 1) {
        _current_char = '\0';   // Indicates end of input
    } else {
        _current_char = _text[_pos];
    }
}

// Assembly:
movq (%rdi), %rcx
movq 0x8(%rdi), %rax
incq %rax
movq %rax, 0x8(%rdi)
movq 0x8(%rcx), %rdx
decq %rdx
cmpq %rdx, %rax
jbe 0x26a6
xorl %eax, %eax
jmp 0x26ac
movq (%rcx), %rcx
movb (%rcx,%rax), %al
movb %al, 0x10(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O2/jaldhar[P]Lets-Build-a-Simple-Interpreter/calc3.cc
// Function: Interpreter::integer()
long Interpreter::integer() {
    string result("");

    while (_current_char != '\0' && isdigit(_current_char)) {
        result += _current_char;
        advance();
    }

    return stol(result);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x966(%rip), %rsi       # 0x3049
leaq 0x8(%rsp), %r14
leaq 0x7(%rsp), %rdx
movq %r14, %rdi
callq 0x285c
movsbl 0x10(%rbx), %eax
leal -0x30(%rax), %ecx
cmpl $0x9, %ecx
ja 0x2716
movsbl %al, %esi
movq %r14, %rdi
callq 0x2100
movq %rbx, %rdi
callq 0x2688
jmp 0x26f5
leaq 0x8(%rsp), %rdi
pushq $0xa
popq %rdx
xorl %esi, %esi
callq 0x2897
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2090
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
jmp 0x273f
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2090
movq %rbx, %rdi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O2/jaldhar[P]Lets-Build-a-Simple-Interpreter/calc3.cc
// Function: main
int main() {
    string text;
    while(cin) {
        cout << "calc> ";
        getline(cin, text);

        try {
            Interpreter interpreter(text);
            long result = interpreter.expression();
            cout << result << endl;
        }
        catch(const char* error) {
            cerr << error << endl;
            break;
        }
    }

    return EXIT_SUCCESS;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x50, %rsp
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x285f(%rip), %rbx      # 0x4fd8
movq 0x2840(%rip), %r14      # 0x4fc0
leaq 0x8de(%rip), %r15       # 0x3065
leaq 0x8(%rsp), %r12
leaq 0x28(%rsp), %r13
movq (%rbx), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x20(%rbx,%rax)
jne 0x2838
movq %r14, %rdi
movq %r15, %rsi
callq 0x2140
movq %rbx, %rdi
movq %r12, %rsi
callq 0x2050
movq %r12, 0x28(%rsp)
andq $0x0, 0x30(%rsp)
movq 0x8(%rsp), %rax
movb (%rax), %al
movb %al, 0x38(%rsp)
andl $0x0, 0x40(%rsp)
andq $0x0, 0x48(%rsp)
movq %r13, %rdi
callq 0x23f4
movq %r14, %rdi
movq %rax, %rsi
callq 0x2130
movq %rax, %rdi
callq 0x20a0
jmp 0x2791
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2090
movq %rbx, %rdi
callq 0x21c0
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x27fa
movq %rbx, %rdi
callq 0x2070
movq 0x27cd(%rip), %rdi      # 0x4ff0
movq %rax, %rsi
callq 0x2140
movq %rax, %rdi
callq 0x20a0
callq 0x21a0
leaq 0x8(%rsp), %rdi
callq 0x2090
xorl %eax, %eax
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
callq 0x21a0
jmp 0x27fa
// File: /workspace/github_cpp_makefile_star2_O2/iZhangHui[P]CppPrimer/CH01_GettingStarted/examples/whilecount.cc
// Function: main
int main()
{
    int sum = 0, val = 1;
    // keep executing the while as long as val is less than or equal to 10
    while (val <= 10) {
        sum += val;  // assigns sum + val to sum
        ++val;       // add 1 to val
    }
    std::cout << "Sum of 1 to 10 inclusive is " 
              << sum << std::endl;

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0x2e11(%rip), %rdi      # 0x3fd8
leaq 0xe36(%rip), %rsi       # 0x2004
callq 0x1050
pushq $0x37
popq %rsi
movq %rax, %rdi
callq 0x1070
movq %rax, %rdi
callq 0x1030
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/riyadparvez[P]louvain-method/graph.cpp
// Function: Graph::clean(int)
void
Graph::clean(int type) {
  for (unsigned int i=0 ; i<links.size() ; i++) {
    map<int, float> m;
    map<int, float>::iterator it;

    for (unsigned int j=0 ; j<links[i].size() ; j++) {
      it = m.find(links[i][j].first);
      if (it==m.end())
	m.insert(make_pair(links[i][j].first, links[i][j].second));
      else if (type==WEIGHTED)
      	it->second+=links[i][j].second;
    }
    
    vector<pair<int,float> > v;
    for (it = m.begin() ; it!=m.end() ; it++)
      v.push_back(*it);
    links[i].clear();
    links[i]=v;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %esi, 0xc(%rsp)
movq %rdi, %r14
xorl %ebx, %ebx
leaq 0x40(%rsp), %r13
leaq 0x38(%rsp), %r15
leaq 0x20(%rsp), %r12
movl %ebx, %ebx
movq (%r14), %rcx
movq 0x8(%r14), %rax
subq %rcx, %rax
cqto
pushq $0x18
popq %rsi
idivq %rsi
cmpq %rbx, %rax
jbe 0x2951
andl $0x0, 0x40(%rsp)
andq $0x0, 0x48(%rsp)
movq %r13, 0x50(%rsp)
movq %r13, 0x58(%rsp)
andq $0x0, 0x60(%rsp)
xorl %ebp, %ebp
movq %rbx, 0x18(%rsp)
imulq $0x18, %rbx, %rbx
movl %ebp, %ebp
movq (%rcx,%rbx), %rax
movq 0x8(%rcx,%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rbp, %rcx
jbe 0x28d3
leaq (%rax,%rbp,8), %rsi
movq %r15, %rdi
callq 0x408e
cmpq %r13, %rax
je 0x28b1
movq (%r14), %rcx
cmpl $0x0, 0xc(%rsp)
jne 0x28cf
movq (%rcx,%rbx), %rdx
movss 0x4(%rdx,%rbp,8), %xmm0
addss 0x24(%rax), %xmm0
movss %xmm0, 0x24(%rax)
jmp 0x28cf
movq (%r14), %rax
movq (%rax,%rbx), %rax
movq (%rax,%rbp,8), %rax
movq %rax, 0x20(%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x40e0
movq (%r14), %rcx
incl %ebp
jmp 0x2869
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
andq $0x0, 0x30(%rsp)
movq 0x50(%rsp), %rbp
cmpq %r13, %rbp
je 0x2917
movl 0x20(%rbp), %eax
movl %eax, 0x10(%rsp)
movss 0x24(%rbp), %xmm0
movss %xmm0, 0x14(%rsp)
movq %r12, %rdi
leaq 0x10(%rsp), %rsi
callq 0x32e8
movq %rbp, %rdi
callq 0x20f0
movq %rax, %rbp
jmp 0x28e6
movq (%r14), %rcx
leaq (%rcx,%rbx), %rdi
movq (%rcx,%rbx), %rax
cmpq %rax, 0x8(%rcx,%rbx)
je 0x292d
movq %rax, 0x8(%rdi)
movq %r12, %rsi
callq 0x2e0e
movq 0x18(%rsp), %rbx
movq %r12, %rdi
callq 0x4266
movq %r15, %rdi
callq 0x2fba
incl %ebx
jmp 0x2826
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2964
jmp 0x2973
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x4266
jmp 0x2976
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x2fba
movq %rbx, %rdi
callq 0x2240
// File: /workspace/github_cpp_makefile_star2_O2/riyadparvez[P]louvain-method/graph.cpp
// Function: Graph::display(int)
void
Graph::display(int type) {
  for (unsigned int i=0 ; i<links.size() ; i++) {
    for (unsigned int j=0 ; j<links[i].size() ; j++) {
      int dest   = links[i][j].first;
      float weight = links[i][j].second;
      if (type==WEIGHTED)
	cout << i << " " << dest << " " << weight << endl;
      else
	cout << i << " " << dest << endl;
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, %ebx
movq %rdi, %r14
movq (%rdi), %rcx
xorl %r15d, %r15d
movl %r15d, %r15d
movq 0x8(%r14), %rax
subq %rcx, %rax
cqto
pushq $0x18
popq %rsi
idivq %rsi
cmpq %r15, %rax
jbe 0x2a99
xorl %r12d, %r12d
imulq $0x18, %r15, %r13
movq %r13, 0x10(%rsp)
movl %r12d, %r12d
movq (%rcx,%r13), %rax
movq 0x8(%rcx,%r13), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r12, %rdx
jbe 0x2a91
movl (%rax,%r12,8), %ebp
testl %ebx, %ebx
je 0x2a16
movq 0x55dd(%rip), %rdi      # 0x7fd0
movq %r15, %rsi
callq 0x20e0
movq %rax, %rdi
leaq 0x2687(%rip), %rsi      # 0x508c
callq 0x2130
movq %rax, %rdi
movl %ebp, %esi
callq 0x2220
jmp 0x2a7e
movss 0x4(%rax,%r12,8), %xmm0
movss %xmm0, 0xc(%rsp)
movq 0x55a6(%rip), %rdi      # 0x7fd0
movq %r15, %rsi
callq 0x20e0
movq %rax, %rdi
movq %r15, %r13
movq %r14, %r15
movl %ebx, %r14d
leaq 0x2647(%rip), %rbx      # 0x508c
movq %rbx, %rsi
callq 0x2130
movq %rax, %rdi
movl %ebp, %esi
callq 0x2220
movq %rax, %rdi
movq %rbx, %rsi
movl %r14d, %ebx
movq %r15, %r14
movq %r13, %r15
movq 0x10(%rsp), %r13
callq 0x2130
movq %rax, %rdi
movss 0xc(%rsp), %xmm0
callq 0x2100
movq %rax, %rdi
callq 0x20a0
incl %r12d
movq (%r14), %rcx
jmp 0x29c8
incl %r15d
jmp 0x29a1
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/riyadparvez[P]louvain-method/main_convert.cpp
// Function: usage(char*, char const*)
void
usage(char *prog_name, const char *more) {
  cerr << more;
  cerr << "usage: " << prog_name << " -i input_file -o outfile [-r] [-w outfile_weight]" << endl << endl;
  cerr << "read the graph and convert it to binary format." << endl;
  cerr << "-r\tnodes are renumbered from 0 to nb_nodes-1 (the order is kept)." << endl;
  cerr << "-w filename\tread the graph as a weighted one and writes the weights in a separate file." << endl;
  cerr << "-h\tshow this usage message." << endl;
  exit(0);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x3d5e(%rip), %rbx      # 0x7ff0
movq %rbx, %rdi
callq 0x2130
leaq 0xde5(%rip), %rsi       # 0x5086
movq %rbx, %rdi
callq 0x2130
movq %rax, %rdi
movq %r14, %rsi
callq 0x2130
leaq 0xdd3(%rip), %rsi       # 0x508e
movq %rax, %rdi
callq 0x2130
movq %rax, %rdi
callq 0x20a0
movq %rax, %rdi
callq 0x20a0
leaq 0xde7(%rip), %rsi       # 0x50c1
movq %rbx, %rdi
callq 0x2130
movq %rax, %rdi
callq 0x20a0
leaq 0xe00(%rip), %rsi       # 0x50f1
movq %rbx, %rdi
callq 0x2130
movq %rax, %rdi
callq 0x20a0
leaq 0xe2b(%rip), %rsi       # 0x5133
movq %rbx, %rdi
callq 0x2130
movq %rax, %rdi
callq 0x20a0
leaq 0xe6c(%rip), %rsi       # 0x518b
movq %rbx, %rdi
callq 0x2130
movq %rax, %rdi
callq 0x20a0
xorl %edi, %edi
callq 0x2190
// File: /workspace/github_cpp_makefile_star2_O2/riyadparvez[P]louvain-method/main_convert.cpp
// Function: parse_args(int, char**)
void
parse_args(int argc, char **argv) {
  for (int i = 1; i < argc; i++) {
    if(argv[i][0] == '-') {
      switch(argv[i][1]) {
      case 'i':
	if (i==argc-1)
	  usage(argv[0], "Infile missing\n");
	infile = argv[i+1];
	i++;
	break;
      case 'o':
	if (i==argc-1)
	  usage(argv[0], "Outfile missing\n");
        outfile = argv[i+1];
	i++;
	break;
      case 'w' :
	type = WEIGHTED;
        outfile_w = argv[i+1];
	i++;
	break;
      case 'r' :
	do_renumber=true;
	break;
      default:
	usage(argv[0], "Unknown option\n");
      }
    } else {
      usage(argv[0], "More than one filename\n");
    }
  }
  if (infile==NULL || outfile==NULL)
    usage(argv[0], "In or outfile missing\n");
}

// Assembly:
pushq %rax
leal -0x1(%rdi), %eax
pushq $0x1
popq %rcx
cmpl %edi, %ecx
jge 0x43b5
movslq %ecx, %rdx
movq (%rsi,%rdx,8), %r8
cmpb $0x2d, (%r8)
jne 0x43cb
movzbl 0x1(%r8), %r8d
cmpl $0x77, %r8d
je 0x4388
cmpl $0x6f, %r8d
je 0x439f
cmpl $0x72, %r8d
je 0x437f
cmpl $0x69, %r8d
jne 0x43da
cmpl %eax, %ecx
je 0x43e9
incl %ecx
movq 0x8(%rsi,%rdx,8), %rdx
movq %rdx, 0x3ddb(%rip)      # 0x8158
jmp 0x43b1
movb $0x1, 0x3dea(%rip)      # 0x8170
jmp 0x43b1
andl $0x0, 0x3db1(%rip)      # 0x8140
incl %ecx
movq 0x8(%rsi,%rdx,8), %rdx
movq %rdx, 0x3dcb(%rip)      # 0x8168
jmp 0x43b1
cmpl %eax, %ecx
je 0x43f8
incl %ecx
movq 0x8(%rsi,%rdx,8), %rdx
movq %rdx, 0x3daf(%rip)      # 0x8160
incl %ecx
jmp 0x433d
cmpq $0x0, 0x3d9b(%rip)      # 0x8158
je 0x4407
cmpq $0x0, 0x3d99(%rip)      # 0x8160
je 0x4407
popq %rax
retq
movq (%rsi), %rdi
leaq 0xe03(%rip), %rsi       # 0x51d8
callq 0x4284
movq (%rsi), %rdi
leaq 0xde4(%rip), %rsi       # 0x51c8
callq 0x4284
movq (%rsi), %rdi
leaq 0xdb4(%rip), %rsi       # 0x51a7
callq 0x4284
movq (%rsi), %rdi
leaq 0xdb5(%rip), %rsi       # 0x51b7
callq 0x4284
movq (%rsi), %rdi
leaq 0xddf(%rip), %rsi       # 0x51f0
callq 0x4284
// File: /workspace/github_cpp_makefile_star2_O2/riyadparvez[P]louvain-method/main_convert.cpp
// Function: main
int
main(int argc, char **argv) {
  parse_args(argc, argv);

  Graph g(infile, type);

  g.clean(type);

  if (do_renumber)
    g.renumber(type);

  g.display_binary(outfile, outfile_w, type);

}

// Assembly:
pushq %rbx
subq $0x30, %rsp
callq 0x4336
movq 0x3d31(%rip), %rsi      # 0x8158
movl 0x3d13(%rip), %edx      # 0x8140
movq %rsp, %rbx
movq %rbx, %rdi
callq 0x239c
movl 0x3d02(%rip), %esi      # 0x8140
movq %rbx, %rdi
callq 0x2800
cmpb $0x1, 0x3d23(%rip)      # 0x8170
jne 0x445d
movl 0x3ceb(%rip), %esi      # 0x8140
movq %rsp, %rdi
callq 0x25d2
movq 0x3cfc(%rip), %rsi      # 0x8160
movq 0x3cfd(%rip), %rdx      # 0x8168
movl 0x3ccf(%rip), %ecx      # 0x8140
movq %rsp, %rdi
callq 0x2aa8
movq %rsp, %rdi
callq 0x449c
xorl %eax, %eax
addq $0x30, %rsp
popq %rbx
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x449c
movq %rbx, %rdi
callq 0x2240
// File: /workspace/github_cpp_makefile_star2_O2/mbottini[P]CS250lab2/main.cpp
// Function: getVariables(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&)
stringVector getVariables(const stringVector& tokenVector) {
    stringVector variableVector;
    for(stringIter i = tokenVector.begin(); i != tokenVector.end(); ++i) {

        if(i->length() == 1 && isalpha(i->at(0)) && i->at(0) != 'v' &&
                                 i->at(0) != 'c' && i->at(0) != 't') {

            if(!(std::find(variableVector.begin(), variableVector.end(), *i) !=
                    variableVector.end())) {
                variableVector.push_back(*i);
            }
        }
    }

    return variableVector;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
movq (%rsi), %r15
cmpq 0x8(%r14), %r15
je 0x2c7c
cmpq $0x1, 0x8(%r15)
jne 0x2c76
movq %r15, %rdi
xorl %esi, %esi
callq 0x21a0
movsbl (%rax), %edi
callq 0x2210
testl %eax, %eax
je 0x2c76
movq %r15, %rdi
xorl %esi, %esi
callq 0x21a0
cmpb $0x76, (%rax)
je 0x2c76
movq %r15, %rdi
xorl %esi, %esi
callq 0x21a0
cmpb $0x63, (%rax)
je 0x2c76
movq %r15, %rdi
xorl %esi, %esi
callq 0x21a0
cmpb $0x74, (%rax)
je 0x2c76
movq (%rbx), %rdi
movq 0x8(%rbx), %rsi
movq %r15, %rdx
callq 0x44a8
cmpq 0x8(%rbx), %rax
jne 0x2c76
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3966
addq $0x20, %r15
jmp 0x2c06
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2c8c
movq %rax, %r14
movq %rbx, %rdi
callq 0x3870
movq %r14, %rdi
callq 0x2240
// File: /workspace/github_cpp_makefile_star2_O2/mbottini[P]CS250lab2/main.cpp
// Function: combineVectors(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&)
stringVector combineVectors(const stringVector& vector1, 
                            const stringVector& vector2) {
    stringVector newVector = vector1;

    for(stringIter i = vector2.begin(); i != vector2.end(); ++i) {
        if(std::find(newVector.begin(), 
                     newVector.end(), *i) == newVector.end()) {
            newVector.push_back(*i);
        }
    }

    std::sort(newVector.begin(), newVector.end());

    return newVector;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rdi, %rbx
callq 0x3ab8
movq (%r14), %r15
movq (%rbx), %rdi
movq 0x8(%rbx), %rsi
cmpq 0x8(%r14), %r15
je 0x2ce3
movq %r15, %rdx
callq 0x44a8
cmpq 0x8(%rbx), %rax
jne 0x2cdd
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3966
addq $0x20, %r15
jmp 0x2cb7
callq 0x4d9d
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2cfa
jmp 0x2cfa
movq %rax, %r14
movq %rbx, %rdi
callq 0x3870
movq %r14, %rdi
callq 0x2240
// File: /workspace/github_cpp_makefile_star2_O2/mbottini[P]CS250lab2/main.cpp
// Function: setValues(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, bool>>>&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, int)
void setValues(boolMap& bmap, const stringVector& variableVector, 
                                                  int comboGen) {
    int j = 0;
    for(stringIter i = variableVector.begin(); i != variableVector.end(); i++) {
        if((comboGen >> j) & 0x01) {
            bmap[*i] = true;
        }

        else {
            bmap[*i] = false;
        }
        j++;
    }

    return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movq (%rsi), %r12
xorl %r13d, %r13d
cmpq 0x8(%r14), %r12
je 0x2f91
movq %r15, %rdi
movq %r12, %rsi
callq 0x3a4e
btl %r13d, %ebx
setb (%rax)
incl %r13d
addq $0x20, %r12
jmp 0x2f70
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/mbottini[P]CS250lab2/main.cpp
// Function: isOperator(char const&)
bool isOperator(const char& ch) {
    char validOperators[] = {'!', 'v', '^'};

    for(int i = 0; i < 3; i++) {
        if(ch == validOperators[i]) {
            return true;
        }
    }

    return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movb (%rdi), %al
xorl %esi, %esi
leaq 0x2e03(%rip), %rcx      # 0x61e8
movq %rsi, %rdx
cmpq $0x3, %rsi
je 0x33f7
leaq 0x1(%rdx), %rsi
cmpb (%rdx,%rcx), %al
jne 0x33e5
cmpq $0x3, %rdx
setb %al
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/mbottini[P]CS250lab2/main.cpp
// Function: isOperator(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool isOperator(const string& s) {
    string validOperators[] = {"!", "v", "^", "->", "<->", "XOR"};

    for(int i = 0; i < 6; i++) {
        if(s == validOperators[i]) {
            return true;
        }
    }

    return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xc8, %rsp
movq %rdi, %r15
leaq 0x2bd4(%rip), %rsi      # 0x602c
leaq -0xe0(%rbp), %rbx
leaq -0x1e(%rbp), %rdx
movq %rbx, %rdi
callq 0x2090
leaq -0xc0(%rbp), %r14
leaq 0x2c2d(%rip), %rsi      # 0x60a6
leaq -0x1d(%rbp), %rdx
movq %r14, %rdi
callq 0x2090
leaq -0xa0(%rbp), %r14
leaq 0x2c15(%rip), %rsi      # 0x60a8
leaq -0x1c(%rbp), %rdx
movq %r14, %rdi
callq 0x2090
leaq -0x80(%rbp), %r14
leaq 0x2bf9(%rip), %rsi      # 0x60a3
leaq -0x1b(%rbp), %rdx
movq %r14, %rdi
callq 0x2090
leaq -0x60(%rbp), %r14
leaq 0x2be1(%rip), %rsi      # 0x60a2
leaq -0x1a(%rbp), %rdx
movq %r14, %rdi
callq 0x2090
leaq -0x40(%rbp), %r14
leaq 0x2bc6(%rip), %rsi      # 0x609e
leaq -0x19(%rbp), %rdx
movq %r14, %rdi
callq 0x2090
xorl %ecx, %ecx
movq %rcx, %r14
cmpq $0x6, %rcx
je 0x3506
movq %r15, %rdi
movq %rbx, %rsi
callq 0x39a1
leaq 0x1(%r14), %rcx
addq $0x20, %rbx
testb %al, %al
je 0x34e6
movl $0xa0, %ebx
leaq (%rbx,%rbp), %rdi
addq $-0xe0, %rdi
callq 0x20c0
addq $-0x20, %rbx
cmpq $-0x20, %rbx
jne 0x350b
cmpq $0x6, %r14
setb %al
addq $0xc8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3542
jmp 0x3542
jmp 0x3542
jmp 0x3542
movq %rax, %r15
addq $-0x20, %r14
movq %r14, %rdi
callq 0x20c0
cmpq %rbx, %r14
jne 0x3545
movq %r15, %rdi
callq 0x2240
// File: /workspace/github_cpp_makefile_star2_O2/mbottini[P]CS250lab2/main.cpp
// Function: getPrecedence(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
int getPrecedence(const string& s) {
    if(s == "<->") {
        return 0;
    }

    if(s == "->") {
        return 1;
    }

    if(s == "XOR") {
        return 2;
    }

    if(s == "v") {
        return 3;
    }

    if(s == "^") {
        return 4;
    }

    if(s == "!") {
        return 5;
    }

    else {
        return -1;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x2b02(%rip), %rsi      # 0x60a2
callq 0x3955
movl %eax, %ecx
xorl %eax, %eax
testb %cl, %cl
jne 0x3608
leaq 0x2aef(%rip), %rsi      # 0x60a3
movq %rbx, %rdi
callq 0x3955
testb %al, %al
je 0x35c4
pushq $0x1
jmp 0x3607
leaq 0x2ad3(%rip), %rsi      # 0x609e
movq %rbx, %rdi
callq 0x3955
testb %al, %al
je 0x35db
pushq $0x2
jmp 0x3607
leaq 0x2ac4(%rip), %rsi      # 0x60a6
movq %rbx, %rdi
callq 0x3955
testb %al, %al
je 0x35f2
pushq $0x3
jmp 0x3607
leaq 0x2aaf(%rip), %rsi      # 0x60a8
movq %rbx, %rdi
callq 0x3955
testb %al, %al
je 0x360f
pushq $0x4
popq %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x2a16(%rip), %rsi      # 0x602c
movq %rbx, %rdi
callq 0x3955
movzbl %al, %eax
decl %eax
orl $0x5, %eax
jmp 0x3608
// File: /workspace/github_cpp_makefile_star2_O2/davmac314[P]dinit/build/tools/mconfig-gen.cc
// Function: parse_arg(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void parse_arg(std::string arg)
{
    auto idx = arg.find("=", 0, 1);
    if (idx == std::string::npos) {
        throw std::string("Couldn't parse argument: ") + arg;
    }

    auto name = arg.substr(0, idx);
    auto value = arg.substr(idx + 1);
    vars.emplace(std::move(name), std::move(value));
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r14
leaq 0x1c46(%rip), %rsi      # 0x4004
pushq $0x1
popq %rcx
xorl %edx, %edx
callq 0x21d0
cmpq $-0x1, %rax
je 0x2426
movq %rax, %rbx
movq %rsp, %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x2150
incq %rbx
leaq 0x20(%rsp), %rdi
pushq $-0x1
popq %rcx
movq %r14, %rsi
movq %rbx, %rdx
callq 0x2150
leaq 0x4d3a(%rip), %rdi      # 0x7138
movq %rsp, %rsi
leaq 0x20(%rsp), %rdx
callq 0x318a
leaq 0x20(%rsp), %rdi
callq 0x2228
movq %rsp, %rdi
callq 0x2228
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x20
popq %rdi
callq 0x2090
movq %rax, %rbx
leaq 0x1bce(%rip), %rsi      # 0x4006
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x2fd8
movb $0x1, %bpl
movq %rsp, %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x2fb9
xorl %ebp, %ebp
leaq 0x4941(%rip), %rsi      # 0x6da0
movq 0x4b62(%rip), %rdx      # 0x6fc8
movq %rbx, %rdi
callq 0x21c0
movq %rax, %r14
movq %rsp, %rdi
callq 0x2228
testb %bpl, %bpl
jne 0x2483
jmp 0x24a7
movq %rax, %r14
movq %rbx, %rdi
callq 0x20c0
jmp 0x24a7
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x2228
jmp 0x249f
movq %rax, %r14
movq %rsp, %rdi
callq 0x2228
movq %r14, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O2/davmac314[P]dinit/build/tools/mconfig-gen.cc
// Function: stringify(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
static std::string stringify(std::string a)
{
    std::string out = "\"";

    for (std::string::size_type i = 0; i < a.length(); i++) {
        char c = a[i];
        if (c == '\n') out += "\\n";
        else if (c == '\t') out += "\\t";
        else if (c == '\"') out += "\\\"";
        else if (c < 0x20) {
            out += "\\x" ;
            out += to_hex_digit((c & 0xF0) >> 4);
            out += to_hex_digit((c & 0x0F));
        }
        else out += c;
    }

    out += "\"";
    return out;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x150e(%rip), %rsi      # 0x43d7
leaq 0x7(%rsp), %rdx
callq 0x2fd8
xorl %r12d, %r12d
leaq 0x14f6(%rip), %r13      # 0x43d3
pushq $0x30
popq %rbp
cmpq 0x8(%r14), %r12
jae 0x2f7d
movq (%r14), %rax
movzbl (%rax,%r12), %r15d
movq %r13, %rsi
cmpl $0x9, %r15d
je 0x2f17
cmpl $0x22, %r15d
je 0x2f10
cmpl $0xa, %r15d
jne 0x2f21
leaq 0x14c2(%rip), %rsi      # 0x43d0
jmp 0x2f17
leaq 0x14bf(%rip), %rsi      # 0x43d6
movq %rbx, %rdi
callq 0x2200
jmp 0x2f75
cmpb $0x1f, %r15b
jg 0x2f69
movq %rbx, %rdi
leaq 0x14a8(%rip), %rsi      # 0x43d9
callq 0x2200
movl %ebp, %eax
cmpb $-0x60, %r15b
jb 0x2f41
pushq $0x37
popq %rax
movl %r15d, %ecx
shrb $0x4, %cl
addb %cl, %al
movzbl %al, %esi
movq %rbx, %rdi
callq 0x20f0
andb $0xf, %r15b
movl %ebp, %eax
cmpb $0xa, %r15b
jb 0x2f63
pushq $0x37
popq %rax
addb %r15b, %al
movl %eax, %r15d
movsbl %r15b, %esi
movq %rbx, %rdi
callq 0x20f0
incq %r12
jmp 0x2ee0
leaq 0x1453(%rip), %rsi      # 0x43d7
movq %rbx, %rdi
callq 0x2200
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2fa0
movq %rax, %r14
movq %rbx, %rdi
callq 0x2228
movq %r14, %rdi
callq 0x21e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/shengzh-oOoO[P]CodeSim/src/text_moss.cpp
// Function: CodeFile::CreateHashList()
void CreateHashList(){
        FILE *fid = fopen(filename,"r");
        if(fid == NULL){
            printf("打开%s失败\n",filename);
            assert(false);
        }
        char ch = 0;
        char prev_ch = 0;
        while(EOF!=(ch= fgetc(fid))){
        	if (ch=='\n'||ch=='\t'){
        		ch = ' ';
        	}
        	if(prev_ch == ' '&& ch ==' '){
        		continue;
        	}
            if (hashwindow.size() < N_GRAM_K){
                hashwindow.push_back(ch);    
            }
            else{
                hashlist.push_back(RSHash());
                hashwindow.pop_front();
                hashwindow.push_back(ch);
            }
            prev_ch = ch;
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x1b93(%rip), %rsi      # 0x3078
callq 0x10f0
testq %rax, %rax
je 0x1587
movq %rax, %r14
leaq -0x29(%rbp), %rax
movb $0x0, (%rax)
leaq 0x68(%rbx), %r12
leaq 0x80(%rbx), %r13
xorl %r15d, %r15d
movq %r14, %rdi
callq 0x1120
movb %al, -0x29(%rbp)
movzbl %al, %ecx
leal -0x9(%rcx), %edx
cmpl $0x2, %edx
jae 0x1529
movb $0x20, -0x29(%rbp)
movb $0x20, %al
jmp 0x1531
cmpl $0xff, %ecx
je 0x1578
xorb $0x20, %r15b
xorb $0x20, %al
orb %r15b, %al
movb $0x20, %r15b
je 0x150b
cmpq $0xa, 0x78(%rbx)
jb 0x1566
movq %rbx, %rdi
callq 0x16da
movq %rax, -0x38(%rbp)
movq %r13, %rdi
leaq -0x38(%rbp), %rsi
callq 0x182c
movq %r12, %rdi
callq 0x1730
movq %r12, %rdi
leaq -0x29(%rbp), %rsi
callq 0x16ca
movb -0x29(%rbp), %r15b
jmp 0x150b
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1aec(%rip), %rdi      # 0x307a
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1030
leaq 0x1a99(%rip), %rdi      # 0x3038
leaq 0x1a98(%rip), %rsi      # 0x303e
leaq 0x1add(%rip), %rcx      # 0x308a
pushq $0x2b
popq %rdx
callq 0x1090
nop
// File: /workspace/github_cpp_makefile_star2_O2/shengzh-oOoO[P]CodeSim/src/text_moss.cpp
// Function: CodeFile::Winnowing()
void Winnowing(){
        list<long> win;
        vector<long>::iterator h;
        long before = LONG_LONG_MAX;
        for (h = hashlist.begin(); h != hashlist.end(); h++){
            if (win.size() < WINNOWING_SIZE){
                win.push_back(*h);
            }
            else{
                list<long>::iterator i;
                long min = LONG_LONG_MAX;
                for (i = win.begin(); i != win.end(); i++){
                    if(*i < min) min = *i;
                }
                if(min !=  before){
                    before = min;
                    result.push_back(min);
                }
                win.pop_front();
                win.push_back(*h);
            }
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movabsq $0x7fffffffffffffff, %r12 # imm = 0x7FFFFFFFFFFFFFFF
leaq -0x50(%rbp), %r14
movq %r14, 0x8(%r14)
movq %r14, (%r14)
andq $0x0, 0x10(%r14)
movq 0x80(%rdi), %r15
leaq 0x98(%rdi), %rax
movq %rax, -0x30(%rbp)
cmpq 0x88(%rbx), %r15
je 0x1668
cmpq $0x4, -0x40(%rbp)
ja 0x1613
movq %r14, %rdi
movq %r15, %rsi
callq 0x1a0a
jmp 0x1662
movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF
movq %r14, %rax
movq %rcx, %r13
movq (%rax), %rax
cmpq %r14, %rax
je 0x1636
movq 0x10(%rax), %rcx
cmpq %r13, %rcx
jge 0x1623
jmp 0x1620
movq %r13, -0x38(%rbp)
cmpq %r12, %r13
je 0x164f
movq -0x30(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x1a1a
movq %r13, %r12
movq %r14, %rdi
callq 0x1a42
movq %r14, %rdi
movq %r15, %rsi
callq 0x1a0a
addq $0x8, %r15
jmp 0x15f6
leaq -0x50(%rbp), %rdi
callq 0x1c24
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1682
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x1c24
movq %rbx, %rdi
callq 0x1150
// File: /workspace/github_cpp_makefile_star2_O2/shengzh-oOoO[P]CodeSim/src/text_moss.cpp
// Function: CodeFile::RSHash()
long RSHash(){
        long b = 378551;
        long a = 63689;
        long hash = 0;
        assert(hashwindow.size() == N_GRAM_K);
        list<char>::iterator i;
        for (i = hashwindow.begin(); i != hashwindow.end(); i++){
        	// printf("%c", (*i));
            hash = hash * a + (long) (*i);
            a = a * b;
        }
        // printf("\n");
        return hash;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
cmpq $0xa, 0x78(%rdi)
jne 0x1712
addq $0x68, %rdi
movl $0xf8c9, %ecx           # imm = 0xF8C9
xorl %eax, %eax
movq %rdi, %rdx
movq (%rdx), %rdx
cmpq %rdi, %rdx
je 0x1710
imulq %rcx, %rax
movsbq 0x10(%rdx), %rsi
addq %rsi, %rax
imulq $0x5c6b7, %rcx, %rcx    # imm = 0x5C6B7
jmp 0x16f3
popq %rbp
retq
leaq 0x19ab(%rip), %rdi      # 0x30c4
leaq 0x191e(%rip), %rsi      # 0x303e
leaq 0x19bb(%rip), %rcx      # 0x30e2
pushq $0x18
popq %rdx
callq 0x1090
nop
// File: /workspace/github_cpp_makefile_star2_O2/sotrteacher[P]1MM1INTRO/20190925_1MM1_INTRO/EvalContinua.c
// Function: show_reactivo(unsigned int)
int show_reactivo(unsigned int index)
{
  printf("\n/************************************************/\n");
  if((index>=0)&&(index<NUMDREAC)){
    printf("REACTIVO %u:\n",index+1);
    printf("%s\n",REACTIVO[index]);
    printf("\n/************************************************/\n");
  }else{
    return -1;
  }
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %edi, %r14d
leaq 0xcf2(%rip), %rdi       # 0x30bf
callq 0x21e0
cmpl $0x2, %r14d
ja 0x240d
leal 0x1(%r14), %esi
leaq 0xc21(%rip), %rdi       # 0x3004
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x2030
movl %r14d, %edi
shlq $0xb, %rdi
addq 0x2bc6(%rip), %rdi      # 0x4fc0
callq 0x21e0
leaq 0xcb9(%rip), %rdi       # 0x30bf
callq 0x21e0
jmp 0x2410
pushq $-0x1
popq %rbx
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/sotrteacher[P]1MM1INTRO/20190925_1MM1_INTRO/EvalContinua.c
// Function: siguiente_turno()
unsigned int siguiente_turno(){
  int candidato_a_ser_reactivo_en_turno;
  if(cantidad_de_reactivos_usados==NUMDREAC){
    modificado=false;
    return 0;
  }
  if((NUMDREAC-cantidad_de_reactivos_usados)==1){
unsigned int usar_NUMDREAC_buckets();
    if((reactivo_en_turno=usar_NUMDREAC_buckets())>0){
//printf("candidato_a_ser_reactivo_en_turno=%u\n",candidato_a_ser_reactivo_en_turno);
      goto actualizacion;
    }
  }
  if(cantidad_de_reactivos_usados<NUMDREAC){
    srand(time(NULL));
    candidato_a_ser_reactivo_en_turno=1+rand()%NUMDREAC;
bool asignado(unsigned int);
    while(asignado(candidato_a_ser_reactivo_en_turno)){
      candidato_a_ser_reactivo_en_turno=1+rand()%NUMDREAC;
    }
    reactivo_en_turno=candidato_a_ser_reactivo_en_turno;
    assert(reactivo_en_turno<=NUMDREAC);
void actualizar_reactivos_usados(unsigned int);
actualizacion:
    actualizar_reactivos_usados(reactivo_en_turno);
  }
  return reactivo_en_turno;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
leaq 0x452b(%rip), %rax      # 0x6950
movl (%rax), %eax
cmpl $0x2, %eax
je 0x243f
cmpl $0x3, %eax
jne 0x2455
leaq 0x4528(%rip), %rax      # 0x6960
movb $0x0, (%rax)
xorl %eax, %eax
jmp 0x249f
callq 0x24c1
movl %eax, %ebx
leaq 0x4517(%rip), %rax      # 0x6964
movl %ebx, (%rax)
testl %ebx, %ebx
jne 0x248f
jmp 0x2457
jae 0x2496
xorl %edi, %edi
callq 0x2120
movl %eax, %edi
callq 0x2130
pushq $0x3
popq %r14
callq 0x2080
cltd
idivl %r14d
movl %edx, %ebx
incl %ebx
movl %ebx, %edi
callq 0x2510
testb %al, %al
jne 0x2469
leaq 0x44dc(%rip), %rax      # 0x6964
movl %ebx, (%rax)
cmpl $0x4, %ebx
jae 0x24a4
movl %ebx, %edi
callq 0x2542
leaq 0x44c7(%rip), %rax      # 0x6964
movl (%rax), %eax
popq %rbx
popq %r14
popq %rbp
retq
leaq 0xb67(%rip), %rdi       # 0x3012
leaq 0xb7c(%rip), %rsi       # 0x302e
leaq 0xb84(%rip), %rcx       # 0x303d
pushq $0x43
popq %rdx
callq 0x20c0
// File: /workspace/github_cpp_makefile_star2_O2/sotrteacher[P]1MM1INTRO/20190925_1MM1_INTRO/EvalContinua.c
// Function: usar_NUMDREAC_buckets()
unsigned int usar_NUMDREAC_buckets()
{
  char bucket[NUMDREAC+1]={0};        /* buckets o cubetas a utilizar */
  int i;
  for(i=0;i<cantidad_de_reactivos_usados;i++){
    bucket[reactivos_usados[i]]=1;
  }
  for(i=1;i<NUMDREAC;i++){
    if(bucket[i]==0){
      return i;
    }
  }
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
andl $0x0, -0x4(%rbp)
leaq 0x4480(%rip), %rax      # 0x6950
movl (%rax), %eax
leaq 0x447f(%rip), %rcx      # 0x6958
movq (%rcx), %rcx
xorl %edx, %edx
cmpq %rdx, %rax
je 0x24f0
movl (%rcx,%rdx,4), %esi
movb $0x1, -0x4(%rbp,%rsi)
incq %rdx
jmp 0x24de
movabsq $0x1, %rax
cmpq $0x3, %rax
je 0x250c
cmpb $0x0, -0x4(%rbp,%rax)
je 0x250e
incq %rax
jmp 0x24fa
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/sotrteacher[P]1MM1INTRO/20190925_1MM1_INTRO/EvalContinua.c
// Function: asignado(unsigned int)
bool asignado(unsigned int candidato)
{
  unsigned int i;
  for(i=0;i<cantidad_de_reactivos_usados;i++){
    if(*(reactivos_usados+i)==candidato){
      return true;
    }
  }
  return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x4435(%rip), %rax      # 0x6950
movl (%rax), %eax
leaq 0x4434(%rip), %rcx      # 0x6958
movq (%rcx), %rcx
xorl %esi, %esi
movq %rsi, %rdx
cmpq %rsi, %rax
je 0x253a
leaq 0x1(%rdx), %rsi
cmpl %edi, (%rcx,%rdx,4)
jne 0x2529
cmpq %rax, %rdx
setb %al
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/sotrteacher[P]1MM1INTRO/20190925_1MM1_INTRO/EvalContinua.c
// Function: actualizar_reactivos_usados(unsigned int)
void actualizar_reactivos_usados(unsigned int reactivo_en_uso)
{
  unsigned int i,*tmp=(unsigned int *)malloc(cantidad_de_reactivos_usados*sizeof(unsigned int));
  for(i=0;i<cantidad_de_reactivos_usados;i++){
    *(tmp+i)=reactivos_usados[i];
  }
  reactivos_usados=(unsigned int *)malloc(
                   (cantidad_de_reactivos_usados+1)*sizeof(unsigned int));
  for(i=0;i<cantidad_de_reactivos_usados;i++){
    reactivos_usados[i]=*(tmp+i);
  }
  reactivos_usados[cantidad_de_reactivos_usados]=reactivo_en_uso;
  cantidad_de_reactivos_usados++;
  modificado=true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edi, %ebx
leaq 0x43f7(%rip), %rax      # 0x6950
movl (%rax), %r12d
leaq (,%r12,4), %rdi
callq 0x2190
movq %rax, %r14
leaq 0x43e5(%rip), %r13      # 0x6958
movq (%r13), %rax
xorl %ecx, %ecx
cmpq %rcx, %r12
je 0x258a
movl (%rax,%rcx,4), %edx
movl %edx, (%r14,%rcx,4)
incq %rcx
jmp 0x2579
leal 0x1(%r12), %r15d
leaq (,%r15,4), %rdi
callq 0x2190
movq %rax, (%r13)
xorl %ecx, %ecx
cmpq %rcx, %r12
je 0x25b3
movl (%r14,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
incq %rcx
jmp 0x25a2
movl %ebx, (%rax,%r12,4)
leaq 0x4392(%rip), %rax      # 0x6950
movl %r15d, (%rax)
leaq 0x4398(%rip), %rax      # 0x6960
movb $0x1, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq