LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/temelmertcan[P]multgen/src/pp_gen.cpp
// Function: add_extra_ones_to_pp_matrix(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*&, int, std::__cxx11::list<int, std::allocator<int>> const&)
void add_extra_ones_to_pp_matrix (string *& last_row, int col_size, const std::list<int>& extra_ones_indices){

  last_row  = new string[col_size];

  // make sure it is empty..
  for (int i = 0; i<col_size; i++)
    last_row[i] = "";

  for (auto e : extra_ones_indices)
    if (e<col_size)
      last_row[e] = "1'b1";

  // for (int i = 0; i<col_size; i++)
  //   cout << i << " " << last_row[i] << ". ";
  // cout << endl;

  bool carry = false;
  for (int i = 0; i < col_size; i++){

    if (!carry && last_row[i] != ""){
      last_row[i] = "1'b1";
      carry = true;
    } else if (carry && last_row[i] == "") {
      last_row[i] = "1'b1";
    } else if (carry) {
      last_row[i] = "";
    }
  }

  // for (int i = 0; i<col_size; i++)
  //   cout << i << " " << last_row[i] << ". ";
  // cout << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, -0x38(%rbp)
movl %esi, %r14d
movq %rdi, %rbx
movslq %esi, %r15
movq %r15, %r12
shlq $0x5, %r12
leaq 0x8(%r12), %rax
testl %r15d, %r15d
movq $-0x1, %rdi
cmovnsq %rax, %rdi
callq 0x3030
leaq 0x8(%rax), %rcx
movq %r15, (%rax)
testl %r15d, %r15d
je 0x3bbf6
addq $0x18, %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
addq $0x20, %rax
addq $-0x20, %r12
jne 0x3bbdd
movq %rcx, (%rbx)
movl %r14d, %eax
movq %rax, -0x30(%rbp)
testl %r14d, %r14d
jle 0x3bc38
movq -0x30(%rbp), %r13
shlq $0x5, %r13
xorl %r15d, %r15d
leaq 0x3e9ea(%rip), %r12     # 0x7a601
movq (%rbx), %rdi
movq 0x8(%rdi,%r15), %rdx
addq %r15, %rdi
xorl %esi, %esi
movq %r12, %rcx
xorl %r8d, %r8d
callq 0x3310
addq $0x20, %r15
cmpq %r15, %r13
jne 0x3bc17
movq -0x38(%rbp), %r15
movq (%r15), %r12
cmpq %r15, %r12
movq -0x30(%rbp), %r13
je 0x3bc7f
movslq 0x10(%r12), %rax
cmpl %r14d, %eax
jge 0x3bc76
movq (%rbx), %rcx
shlq $0x5, %rax
leaq (%rcx,%rax), %rdi
movq 0x8(%rcx,%rax), %rdx
movl $0x4, %r8d
xorl %esi, %esi
leaq 0x3d3ef(%rip), %rcx     # 0x79060
callq 0x3310
movq (%r12), %r12
cmpq %r15, %r12
jne 0x3bc48
testl %r14d, %r14d
jle 0x3bd20
shlq $0x5, %r13
xorl %r12d, %r12d
leaq 0x3e96b(%rip), %r14     # 0x7a601
xorl %r15d, %r15d
movq (%rbx), %rdi
addq %r12, %rdi
movq %r14, %rsi
callq 0x3090
testb $0x1, %r15b
je 0x3bccc
testl %eax, %eax
je 0x3bcf4
testb $0x1, %r15b
je 0x3bd13
movq (%rbx), %rdi
movq 0x8(%rdi,%r12), %rdx
addq %r12, %rdi
xorl %esi, %esi
movq %r14, %rcx
xorl %r8d, %r8d
jmp 0x3bd0e
testl %eax, %eax
je 0x3bd13
movq (%rbx), %rdi
movq 0x8(%rdi,%r12), %rdx
addq %r12, %rdi
movl $0x4, %r8d
xorl %esi, %esi
leaq 0x3d376(%rip), %rcx     # 0x79060
callq 0x3310
movb $0x1, %r15b
jmp 0x3bd13
movq (%rbx), %rdi
movq 0x8(%rdi,%r12), %rdx
addq %r12, %rdi
movl $0x4, %r8d
xorl %esi, %esi
leaq 0x3d352(%rip), %rcx     # 0x79060
callq 0x3310
addq $0x20, %r12
cmpq %r12, %r13
jne 0x3bc99
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/temelmertcan[P]multgen/src/dadda.cpp
// Function: get_dadda_coeffs(int, int*&, int&)
void get_dadda_coeffs (int max, int *& coeffs, int& size){

  size = 0;
  for (int i = 2; i<max; i = int(i*1.5)){
    size++;
  }

  coeffs = new int[size];

  int cnt = 0;
  for (int i = 2; i<max; i = int(i*1.5)){
    coeffs[size - ++cnt] = i;
  }

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movl %edi, %ebx
movl $0x0, (%rdx)
cmpl $0x3, %edi
jl 0x66148
xorl %eax, %eax
movl $0x2, %ecx
movsd 0x144c7(%rip), %xmm0    # 0x7a5f8
incl %eax
xorps %xmm1, %xmm1
cvtsi2sd %ecx, %xmm1
mulsd %xmm0, %xmm1
cvttsd2si %xmm1, %ecx
cmpl %ebx, %ecx
jl 0x66131
movl %eax, (%rdx)
movslq (%rdx), %r15
leaq (,%r15,4), %rax
testq %r15, %r15
movq $-0x1, %rdi
cmovnsq %rax, %rdi
callq 0x3030
movq %rax, (%r14)
cmpl $0x3, %ebx
jl 0x6619c
leaq (%rax,%r15,4), %rax
addq $-0x4, %rax
movl $0x2, %ecx
movsd 0x14475(%rip), %xmm0    # 0x7a5f8
movl %ecx, (%rax)
xorps %xmm1, %xmm1
cvtsi2sd %ecx, %xmm1
mulsd %xmm0, %xmm1
cvttsd2si %xmm1, %ecx
addq $-0x4, %rax
cmpl %ebx, %ecx
jl 0x66183
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/temelmertcan[P]multgen/src/dadda.cpp
// Function: print_queue(std::queue<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::deque<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>>>>>*, int)
void print_queue (std::queue<string>* q,
		  int size){
  
  for (int i = 0; i<size; i++){

    std::queue<string> temp;

    while (!q[i].empty()){
      cout << q[i].front() << "\t";
      temp.push(q[i].front());
      q[i].pop();
    }

    q[i] = temp;
    cout << endl;
  }

  cout << endl;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, -0x38(%rbp)
testl %esi, %esi
jle 0x662a5
movl %esi, %eax
movq %rax, -0x30(%rbp)
xorl %ebx, %ebx
leaq -0x90(%rbp), %r14
movq 0x20df6(%rip), %r15     # 0x86fd0
leaq 0x1441f(%rip), %r12     # 0x7a600
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
movaps %xmm0, -0x60(%rbp)
movaps %xmm0, -0x70(%rbp)
movaps %xmm0, -0x80(%rbp)
movaps %xmm0, -0x90(%rbp)
movq %r14, %rdi
xorl %esi, %esi
callq 0x2b1a0
leaq (%rbx,%rbx,4), %rcx
shlq $0x4, %rcx
movq -0x38(%rbp), %rdx
leaq (%rdx,%rcx), %r13
movq 0x10(%rdx,%rcx), %rax
cmpq %rax, 0x30(%rdx,%rcx)
je 0x6625e
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r15, %rdi
callq 0x3240
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x3240
movq 0x10(%r13), %rsi
movq %r14, %rdi
callq 0x3b832
movq %r13, %rdi
callq 0x2b108
movq 0x10(%r13), %rax
cmpq %rax, 0x30(%r13)
jne 0x66221
movq %r13, %rdi
movq %r14, %rsi
callq 0x68d42
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x31e0
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3160
movq %r14, %rdi
callq 0x2ab5a
incq %rbx
cmpq -0x30(%rbp), %rbx
jne 0x661e1
movq 0x20d24(%rip), %rbx     # 0x86fd0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3160
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x662e4
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x2ab5a
movq %rbx, %rdi
callq 0x33a0
// File: /workspace/github_cpp_makefile_star2_O1/temelmertcan[P]multgen/src/wallace.cpp
// Function: move_to_main_queue(std::queue<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::deque<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>>>>>*, std::queue<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::deque<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>>>>>*, int)
void move_to_main_queue (queue<string>* temp,
                         queue<string>* main,
                         int size){
  for (int i = 0; i < size; i++){
    while(!temp[i].empty()){
      string cur = temp[i].front();
      temp[i].pop();
      main[i].push (cur);
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, -0x38(%rbp)
movq %rdi, -0x30(%rbp)
testl %edx, %edx
jle 0x6ad78
leaq -0x50(%rbp), %rbx
movl %edx, %eax
movq %rax, -0x40(%rbp)
xorl %r14d, %r14d
leaq -0x60(%rbp), %r15
leaq (%r14,%r14,4), %r12
shlq $0x4, %r12
movq -0x30(%rbp), %rcx
movq 0x10(%rcx,%r12), %rax
cmpq %rax, 0x30(%rcx,%r12)
je 0x6ad6f
movq -0x30(%rbp), %rcx
leaq (%rcx,%r12), %r13
addq -0x38(%rbp), %r12
movq %rbx, -0x60(%rbp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x2acc6
movq %r13, %rdi
callq 0x2b108
movq %r12, %rdi
movq %r15, %rsi
callq 0x3b832
movq -0x60(%rbp), %rdi
cmpq %rbx, %rdi
je 0x6ad65
callq 0x31d0
movq 0x10(%r13), %rax
cmpq %rax, 0x30(%r13)
jne 0x6ad2e
incq %r14
cmpq -0x40(%rbp), %r14
jne 0x6ad0a
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq -0x60(%rbp), %rdi
cmpq %rbx, %rdi
je 0x6ad98
callq 0x31d0
movq %r14, %rdi
callq 0x33a0
// File: /workspace/github_cpp_makefile_star2_O1/temelmertcan[P]multgen/src/wallace.cpp
// Function: print_main_queue(std::queue<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::deque<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>>>>>*, int)
void print_main_queue (queue<string>* main,
		       int size){
  
  cout << "Printing main queue " << endl; 
  for (int i = 0; i < size; i++){
    cout << "Col " << i << ": ";
    queue<string> copyq = main[i];
    while (!copyq.empty()){
      cout << copyq.front() << " ";
      copyq.pop();
    }
    cout << endl;
  }

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %esi, %r15d
movq %rdi, -0x30(%rbp)
movq 0x1c211(%rip), %r14     # 0x86fd0
leaq 0xf8c4(%rip), %rsi      # 0x7a68a
movl $0x14, %edx
movq %r14, %rdi
callq 0x3240
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x31e0
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3160
testl %r15d, %r15d
jle 0x6aec9
movl %r15d, %ebx
xorl %r15d, %r15d
leaq -0x80(%rbp), %r12
leaq 0xce03(%rip), %r13      # 0x77c17
movl $0x4, %edx
movq %r14, %rdi
leaq 0xf87c(%rip), %rsi      # 0x7a69f
callq 0x3240
movq %r14, %rdi
movl %r15d, %esi
callq 0x3380
movl $0x2, %edx
movq %rax, %rdi
leaq 0xf3a9(%rip), %rsi      # 0x7a1eb
callq 0x3240
leaq (%r15,%r15,4), %rsi
shlq $0x4, %rsi
addq -0x30(%rbp), %rsi
movq %r12, %rdi
callq 0x76328
movq -0x70(%rbp), %rax
cmpq %rax, -0x50(%rbp)
je 0x6ae8e
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r14, %rdi
callq 0x3240
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x3240
movq %r12, %rdi
callq 0x2b108
jmp 0x6ae5b
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x31e0
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3160
movq %r12, %rdi
callq 0x2ab5a
incq %r15
cmpq %rbx, %r15
jne 0x6ae14
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6aeda
movq %rax, %rbx
leaq -0x80(%rbp), %rdi
callq 0x2ab5a
movq %rbx, %rdi
callq 0x33a0
// File: /workspace/github_cpp_makefile_star2_O1/temelmertcan[P]multgen/src/wallace.cpp
// Function: get_max_queue_size(std::queue<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::deque<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>>>>>*, int)
int get_max_queue_size (std::queue<string>* q, int size){

  int max=0;
  for (int i = 0; i < size; i++){
    int cur = q[i].size();
    if (max<cur)
      max = cur;
  }

  //cout << "!!! max queue size :"  <<max << endl;
  
  return max;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testl %esi, %esi
jle 0x6af58
movl %esi, %eax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rcx
xorl %edx, %edx
xorl %esi, %esi
movq 0x48(%rdi,%rdx), %rax
movl 0x28(%rdi,%rdx), %r8d
movl %eax, %r9d
subl %r8d, %r9d
shrl $0x3, %r9d
cmpq $0x1, %rax
adcl $-0x1, %r9d
shll $0x4, %r9d
movq 0x20(%rdi,%rdx), %rax
movq 0x30(%rdi,%rdx), %r8
subq 0x38(%rdi,%rdx), %r8
shrq $0x5, %r8
subq 0x10(%rdi,%rdx), %rax
shrq $0x5, %rax
addl %r8d, %eax
addl %r9d, %eax
cmpl %eax, %esi
cmovgl %esi, %eax
addq $0x50, %rdx
movl %eax, %esi
cmpq %rdx, %rcx
jne 0x6af04
jmp 0x6af5a
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/temelmertcan[P]multgen/src/wallace.cpp
// Function: create_4to2tree(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>**, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, int, int, int, bool, bool, std::queue<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::deque<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>>>>>&, int&, bool**&)::four2twoi::add(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void add(string var1,string var2,string var3,string var4){
      in1[size] = var1;
      in2[size] = var2;
      in3[size] = var3;
      in4[size] = var4;
      size++;
      
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r8, %rbx
movq %rcx, %r15
movq %rdx, %r12
movq %rdi, %r14
movslq 0x4(%rdi), %rdi
shlq $0x5, %rdi
addq 0x28(%r14), %rdi
callq 0x3120
movslq 0x4(%r14), %rdi
shlq $0x5, %rdi
addq 0x30(%r14), %rdi
movq %r12, %rsi
callq 0x3120
movslq 0x4(%r14), %rdi
shlq $0x5, %rdi
addq 0x38(%r14), %rdi
movq %r15, %rsi
callq 0x3120
movslq 0x4(%r14), %rdi
shlq $0x5, %rdi
addq 0x40(%r14), %rdi
movq %rbx, %rsi
callq 0x3120
incl 0x4(%r14)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/mattcha[P]sgd-svm/sgd_svm_predict.cpp
// Function: load_model(char const*, Weight&)
int load_model(const char* modelname, Weight &weight)
{
    if (modelname == NULL) {
        fprintf(stderr, "modelname is null\n");
        return -1;
    }

    double lambda = 0.0;
    uint32_t iteration = 0;
    uint32_t w_size = 0;

    ifstream fin;
    fin.open(modelname);
    fin >> lambda >> iteration >> w_size;
    for (uint32_t wi=0; wi<w_size; ++wi) {
        weight.w_vec.push_back(0.0);
    }

    uint32_t idx = 0;
    double val = 0.0;
    while (fin) {
        fin >> idx >> val;
        weight.w_vec[idx] = val;
    }
    
    fprintf(stderr, "load model succ\n");
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x230, %rsp            # imm = 0x230
testq %rdi, %rdi
jne 0x2472
callq 0x2210
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x25af
movq %rsi, %rbx
movq %rdi, %r14
movq $0x0, -0x40(%rbp)
xorl %eax, %eax
movl %eax, -0x34(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x248(%rbp), %r15
movq %r15, %rdi
callq 0x2120
movq %r15, %rdi
movq %r14, %rsi
movl $0x8, %edx
callq 0x2090
leaq -0x248(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x20a0
leaq -0x34(%rbp), %rsi
movq %rax, %rdi
callq 0x21b0
leaq -0x24(%rbp), %rsi
movq %rax, %rdi
callq 0x21b0
cmpl $0x0, -0x24(%rbp)
je 0x2513
xorl %r15d, %r15d
leaq -0x30(%rbp), %r14
movq $0x0, -0x30(%rbp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x24ff
movq $0x0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x250a
movq %rbx, %rdi
movq %r14, %rdx
callq 0x291c
incl %r15d
cmpl -0x24(%rbp), %r15d
jb 0x24dc
movl $0x0, -0x28(%rbp)
movq $0x0, -0x30(%rbp)
movq -0x248(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x5, -0x228(%rbp,%rax)
jne 0x2581
leaq -0x248(%rbp), %r14
leaq -0x28(%rbp), %r15
leaq -0x30(%rbp), %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0x21b0
movq %rax, %rdi
movq %r12, %rsi
callq 0x20a0
movsd -0x30(%rbp), %xmm0
movl -0x28(%rbp), %eax
movq (%rbx), %rcx
movsd %xmm0, (%rcx,%rax,8)
movq -0x248(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x5, -0x228(%rbp,%rax)
je 0x2546
movq 0x2a50(%rip), %rax      # 0x4fd8
movq (%rax), %rcx
leaq 0xaa1(%rip), %rdi       # 0x3033
movl $0x10, %esi
movl $0x1, %edx
callq 0x21f0
leaq -0x248(%rbp), %rdi
callq 0x2040
xorl %eax, %eax
addq $0x230, %rsp            # imm = 0x230
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x25c3
jmp 0x25c3
movq %rax, %rbx
leaq -0x248(%rbp), %rdi
callq 0x2040
movq %rbx, %rdi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O1/mattcha[P]sgd-svm/sgd_svm_predict.cpp
// Function: main
int main(int argc, char** argv) 
{
    int ret;
    if (argc != 3) {
        fprintf(stderr, "Usage : %s modelname testfile\n", argv[0]);
        return 1;
    }

    char *modelname = argv[1];
    char *testfile = argv[2];

    Weight weight;
    ret = load_model(modelname, weight);
    if (ret != 0) {
        fprintf(stderr, "load model [%s] fail\n", modelname);
        return -1;
    }

    ret = predict(testfile, weight);
    if (ret != 0) {
        fprintf(stderr, "predict [%s] fail\n", testfile);
        return -1;
    }

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
cmpl $0x3, %edi
jne 0x28b2
movq 0x8(%rsi), %r14
movq 0x10(%rsi), %rbx
xorps %xmm0, %xmm0
leaq -0x30(%rbp), %rsi
movaps %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
movq %r14, %rdi
callq 0x244c
testl %eax, %eax
jne 0x28c2
leaq -0x30(%rbp), %rsi
movq %rbx, %rdi
callq 0x25da
xorl %r14d, %r14d
testl %eax, %eax
jne 0x28d8
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x28a6
movq -0x20(%rbp), %rsi
subq %rdi, %rsi
callq 0x2110
movl %r14d, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rsi, %rdi
callq 0x2282
movl $0x1, %r14d
jmp 0x28a6
movq 0x270f(%rip), %rax      # 0x4fd8
movq (%rax), %rdi
leaq 0x821(%rip), %rsi       # 0x30f4
movq %r14, %rdx
jmp 0x28ec
movq 0x26f9(%rip), %rax      # 0x4fd8
movq (%rax), %rdi
leaq 0x821(%rip), %rsi       # 0x310a
movq %rbx, %rdx
xorl %eax, %eax
callq 0x2160
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
jmp 0x2891
movq %rax, %rbx
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x2913
movq -0x20(%rbp), %rsi
subq %rdi, %rsi
callq 0x2110
movq %rbx, %rdi
callq 0x21c0
nop
// File: /workspace/github_cpp_makefile_star2_O1/czmccrory[P]ManchesterBaby/baby.cpp
// Function: ManchesterBaby::ldn(int)
void ManchesterBaby::ldn(int operand){

	presentMnemonic = "LDN " + to_string(operand);
  //Get the value at the store
  int negativeValue = store.at(operand).getDecVector();
  //make it negative
  negativeValue = -negativeValue;
  //Add set the accumulator to the negative operand
  accumulator.setDecVector(negativeValue);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movl %esi, %r14d
negl %r14d
cmovsl %esi, %r14d
movl $0x1, %r15d
cmpl $0xa, %r14d
jb 0x2d7b
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0x2d72
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x2d78
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x2d7b
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x2d3f
addl $-0x3, %r15d
jmp 0x2d7b
addl $-0x2, %r15d
jmp 0x2d7b
decl %r15d
movl %ebp, %r12d
shrl $0x1f, %r12d
leal (%r15,%r12), %esi
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movl $0x2d, %edx
callq 0x2210
addq (%r13), %r12
movq %r12, %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x5a96
leaq 0x42ca(%rip), %rcx      # 0x7084
movl $0x4, %r8d
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21e0
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2df3
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x2dfa
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x38(%rbx), %rdi
movq %r14, %rsi
callq 0x2230
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x2e37
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2e53
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movslq %ebp, %rsi
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rsi, %rdx
jbe 0x2e91
leaq (%rax,%rsi,8), %rdi
callq 0x63a6
negl %eax
addq $0x28, %rbx
movq %rbx, %rdi
movl %eax, %esi
callq 0x63dc
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x44dd(%rip), %rdi      # 0x7375
xorl %eax, %eax
callq 0x2270
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2ebe
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O1/czmccrory[P]ManchesterBaby/baby.cpp
// Function: ManchesterBaby::sub(int)
void ManchesterBaby::sub(int operand){

	presentMnemonic = "SUB " + to_string(operand);
 
  //Get the accumulator value
  int accumulatorDec = accumulator.getDecVector();

  //Get the Store value
  int storeDec = store.at(operand).getDecVector(); 

  int result = accumulatorDec- storeDec;

  accumulator.setDecVector(result);

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movl %esi, %r14d
negl %r14d
cmovsl %esi, %r14d
movl $0x1, %r15d
cmpl $0xa, %r14d
jb 0x3401
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0x33f8
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x33fe
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x3401
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x33c5
addl $-0x3, %r15d
jmp 0x3401
addl $-0x2, %r15d
jmp 0x3401
decl %r15d
movl %ebp, %r12d
shrl $0x1f, %r12d
leal (%r15,%r12), %esi
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movl $0x2d, %edx
callq 0x2210
addq (%r13), %r12
movq %r12, %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x5a96
leaq 0x3c5c(%rip), %rcx      # 0x709c
movl $0x4, %r8d
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21e0
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3479
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x3480
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x38(%rbx), %rdi
movq %r14, %rsi
callq 0x2230
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x34bd
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x34d9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x28(%rbx), %r14
movq %r14, %rdi
callq 0x63a6
movl %eax, %r15d
movslq %ebp, %rsi
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rsi, %rdx
jbe 0x3524
leaq (%rax,%rsi,8), %rdi
callq 0x63a6
subl %eax, %r15d
movq %r14, %rdi
movl %r15d, %esi
callq 0x63dc
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3e4a(%rip), %rdi      # 0x7375
xorl %eax, %eax
callq 0x2270
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3551
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2300
nop
// File: /workspace/github_cpp_makefile_star2_O1/czmccrory[P]ManchesterBaby/baby.cpp
// Function: ManchesterBaby::imsub(int)
void ManchesterBaby::imsub(int operand){

	presentMnemonic = "IMSUB " + to_string(operand);

  //Get the accumulator value
  int accumulatorDec = accumulator.getDecVector();

  int result = accumulatorDec - operand;
  accumulator.setDecVector(result);

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movl %esi, %r14d
negl %r14d
cmovsl %esi, %r14d
movl $0x1, %r15d
cmpl $0xa, %r14d
jb 0x363d
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0x3634
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x363a
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x363d
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x3601
addl $-0x3, %r15d
jmp 0x363d
addl $-0x2, %r15d
jmp 0x363d
decl %r15d
movl %ebp, %r12d
shrl $0x1f, %r12d
leal (%r15,%r12), %esi
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movl $0x2d, %edx
callq 0x2210
addq (%r13), %r12
movq %r12, %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x5a96
leaq 0x3a1e(%rip), %rcx      # 0x709a
movl $0x6, %r8d
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21e0
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x36b5
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x36bc
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x38(%rbx), %rdi
movq %r14, %rsi
callq 0x2230
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x36f9
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3715
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
addq $0x28, %rbx
movq %rbx, %rdi
callq 0x63a6
subl %ebp, %eax
movq %rbx, %rdi
movl %eax, %esi
callq 0x63dc
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x375b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2300
nop
// File: /workspace/github_cpp_makefile_star2_O1/czmccrory[P]ManchesterBaby/baby.cpp
// Function: ManchesterBaby::cmp()
void ManchesterBaby::cmp(){

	presentMnemonic = "CMP ";
  int accumulatorValue = accumulator.getDecVector();
  //increment the CI if the
  if(accumulatorValue<0){
    incrementCI();
  }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
addq $0x38, %rdi
movq 0x40(%rbx), %rdx
leaq 0x392a(%rip), %rcx      # 0x70a1
movl $0x4, %r8d
xorl %esi, %esi
callq 0x2290
leaq 0x28(%rbx), %rdi
callq 0x63a6
testl %eax, %eax
jns 0x3794
incl 0x30(%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/czmccrory[P]ManchesterBaby/baby.cpp
// Function: ManchesterBaby::mul(int)
void ManchesterBaby::mul(int operand) {

	presentMnemonic = "MUL " + to_string(operand);
	int accumulatorDec = accumulator.getDecVector(); 
	int storeDec = store.at(operand).getDecVector();
  //multiply the acumulator value with the value we got from the store
	int result = accumulatorDec * storeDec;
	accumulator.setDecVector(result);

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movl %esi, %r14d
negl %r14d
cmovsl %esi, %r14d
movl $0x1, %r15d
cmpl $0xa, %r14d
jb 0x382f
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0x3826
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x382c
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x382f
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x37f3
addl $-0x3, %r15d
jmp 0x382f
addl $-0x2, %r15d
jmp 0x382f
decl %r15d
movl %ebp, %r12d
shrl $0x1f, %r12d
leal (%r15,%r12), %esi
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movl $0x2d, %edx
callq 0x2210
addq (%r13), %r12
movq %r12, %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x5a96
leaq 0x383f(%rip), %rcx      # 0x70ad
movl $0x4, %r8d
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21e0
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x38a7
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x38ae
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x38(%rbx), %rdi
movq %r14, %rsi
callq 0x2230
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x38eb
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3907
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x28(%rbx), %r14
movq %r14, %rdi
callq 0x63a6
movl %eax, %r15d
movslq %ebp, %rsi
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rsi, %rdx
jbe 0x3953
leaq (%rax,%rsi,8), %rdi
callq 0x63a6
imull %eax, %r15d
movq %r14, %rdi
movl %r15d, %esi
callq 0x63dc
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3a1b(%rip), %rdi      # 0x7375
xorl %eax, %eax
callq 0x2270
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3980
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O1/czmccrory[P]ManchesterBaby/baby.cpp
// Function: ManchesterBaby::immul(int)
void ManchesterBaby::immul(int operand) {

	presentMnemonic = "IMMUL " + to_string(operand);
	int accumulatorDec = accumulator.getDecVector();
  //multiply the accumulator value and the operand
  int result = accumulatorDec * operand;
  accumulator.setDecVector(result);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %esi, %ebx
movq %rdi, %r14
movl %esi, %ebp
negl %ebp
cmovsl %esi, %ebp
movl $0x1, %r15d
cmpl $0xa, %ebp
jb 0x39f6
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x39ed
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x39f3
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x39f6
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x39ba
addl $-0x3, %r15d
jmp 0x39f6
addl $-0x2, %r15d
jmp 0x39f6
decl %r15d
movl %ebx, %r12d
shrl $0x1f, %r12d
leal (%r15,%r12), %esi
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movl $0x2d, %edx
callq 0x2210
addq (%r13), %r12
movq %r12, %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x5a96
leaq 0x3677(%rip), %rcx      # 0x70ab
movl $0x6, %r8d
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21e0
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3a6e
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x3a76
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %r15
movq %rdx, 0x8(%r15)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x38(%r14), %rdi
movq %r15, %rsi
callq 0x2230
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x3ab3
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3acf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
addq $0x28, %r14
movq %r14, %rdi
callq 0x63a6
imull %eax, %ebx
movq %r14, %rdi
movl %ebx, %esi
callq 0x63dc
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3b16
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O1/czmccrory[P]ManchesterBaby/baby.cpp
// Function: ManchesterBaby::ldp(int)
void ManchesterBaby::ldp(int operand){
	presentMnemonic = "LDP " + to_string(operand);

	int storeValue = store.at(operand).getDecVector();
	//Add set the accumulator to the negative operand
 	accumulator.setDecVector(storeValue);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movl %esi, %r14d
negl %r14d
cmovsl %esi, %r14d
movl $0x1, %r15d
cmpl $0xa, %r14d
jb 0x3b91
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0x3b88
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x3b8e
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x3b91
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x3b55
addl $-0x3, %r15d
jmp 0x3b91
addl $-0x2, %r15d
jmp 0x3b91
decl %r15d
movl %ebp, %r12d
shrl $0x1f, %r12d
leal (%r15,%r12), %esi
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movl $0x2d, %edx
callq 0x2210
addq (%r13), %r12
movq %r12, %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x5a96
leaq 0x34e4(%rip), %rcx      # 0x70b4
movl $0x4, %r8d
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21e0
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3c09
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x3c10
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x38(%rbx), %rdi
movq %r14, %rsi
callq 0x2230
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x3c4d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3c69
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movslq %ebp, %rsi
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rsi, %rdx
jbe 0x3ca5
leaq (%rax,%rsi,8), %rdi
callq 0x63a6
addq $0x28, %rbx
movq %rbx, %rdi
movl %eax, %esi
callq 0x63dc
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x36c9(%rip), %rdi      # 0x7375
xorl %eax, %eax
callq 0x2270
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3cd2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O1/czmccrory[P]ManchesterBaby/baby.cpp
// Function: ManchesterBaby::add(int)
void ManchesterBaby::add(int operand) {
	presentMnemonic = "ADD " + to_string(operand);

  int accumulatorDec = accumulator.getDecVector(); 
  int storeDec = store.at(operand).getDecVector(); 

  int result = accumulatorDec + storeDec; //add the two values together

  accumulator.setDecVector(result);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movl %esi, %r14d
negl %r14d
cmovsl %esi, %r14d
movl $0x1, %r15d
cmpl $0xa, %r14d
jb 0x3ed9
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0x3ed0
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x3ed6
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x3ed9
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x3e9d
addl $-0x3, %r15d
jmp 0x3ed9
addl $-0x2, %r15d
jmp 0x3ed9
decl %r15d
movl %ebp, %r12d
shrl $0x1f, %r12d
leal (%r15,%r12), %esi
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movl $0x2d, %edx
callq 0x2210
addq (%r13), %r12
movq %r12, %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x5a96
leaq 0x31a3(%rip), %rcx      # 0x70bb
movl $0x4, %r8d
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21e0
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3f51
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x3f58
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x38(%rbx), %rdi
movq %r14, %rsi
callq 0x2230
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x3f95
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3fb1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x28(%rbx), %r14
movq %r14, %rdi
callq 0x63a6
movl %eax, %r15d
movslq %ebp, %rsi
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rsi, %rdx
jbe 0x3ffc
leaq (%rax,%rsi,8), %rdi
callq 0x63a6
addl %eax, %r15d
movq %r14, %rdi
movl %r15d, %esi
callq 0x63dc
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3372(%rip), %rdi      # 0x7375
xorl %eax, %eax
callq 0x2270
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x4029
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2300
nop
// File: /workspace/github_cpp_makefile_star2_O1/czmccrory[P]ManchesterBaby/baby.cpp
// Function: ManchesterBaby::imadd(int)
void ManchesterBaby::imadd(int operand) {

	presentMnemonic = "IMADD " + to_string(operand);

  int accumulatorDec = accumulator.getDecVector();
  int result = accumulatorDec + operand; //add the two values

  accumulator.setDecVector(result); //save it to the accumulator
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %esi, %ebx
movq %rdi, %r14
movl %esi, %ebp
negl %ebp
cmovsl %esi, %ebp
movl $0x1, %r15d
cmpl $0xa, %ebp
jb 0x40a0
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x4097
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x409d
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x40a0
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x4064
addl $-0x3, %r15d
jmp 0x40a0
addl $-0x2, %r15d
jmp 0x40a0
decl %r15d
movl %ebx, %r12d
shrl $0x1f, %r12d
leal (%r15,%r12), %esi
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movl $0x2d, %edx
callq 0x2210
addq (%r13), %r12
movq %r12, %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x5a96
leaq 0x2fdb(%rip), %rcx      # 0x70b9
movl $0x6, %r8d
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21e0
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4118
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x4120
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %r15
movq %rdx, 0x8(%r15)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x38(%r14), %rdi
movq %r15, %rsi
callq 0x2230
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x415d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x4179
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
addq $0x28, %r14
movq %r14, %rdi
callq 0x63a6
addl %eax, %ebx
movq %r14, %rdi
movl %ebx, %esi
callq 0x63dc
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x41bf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2300
nop
// File: /workspace/github_cpp_makefile_star2_O1/czmccrory[P]ManchesterBaby/baby.cpp
// Function: ManchesterBaby::negsto(int)
void ManchesterBaby::negsto(int operand) {

	presentMnemonic = "NEGSTO " + to_string(operand);
  int accumulatorValue = accumulator.getDecVector();
  //store the negative of the accumulator in the store
  store.at(operand).setDecVector(0-accumulatorValue);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movl %esi, %r14d
negl %r14d
cmovsl %esi, %r14d
movl $0x1, %r15d
cmpl $0xa, %r14d
jb 0x423b
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0x4232
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x4238
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x423b
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x41ff
addl $-0x3, %r15d
jmp 0x423b
addl $-0x2, %r15d
jmp 0x423b
decl %r15d
movl %ebp, %r12d
shrl $0x1f, %r12d
leal (%r15,%r12), %esi
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movl $0x2d, %edx
callq 0x2210
addq (%r13), %r12
movq %r12, %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x5a96
leaq 0x2e48(%rip), %rcx      # 0x70c2
movl $0x7, %r8d
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21e0
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x42b3
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x42ba
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x38(%rbx), %rdi
movq %r14, %rsi
callq 0x2230
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x42f7
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x4313
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x28(%rbx), %rdi
callq 0x63a6
movslq %ebp, %rsi
movq (%rbx), %rcx
movq 0x8(%rbx), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
cmpq %rsi, %rdx
jbe 0x434e
leaq (%rcx,%rsi,8), %rdi
negl %eax
movl %eax, %esi
callq 0x63dc
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3020(%rip), %rdi      # 0x7375
xorl %eax, %eax
callq 0x2270
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x437b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2300
nop
// File: /workspace/github_cpp_makefile_star2_O1/czmccrory[P]ManchesterBaby/baby.cpp
// Function: ManchesterBaby::readFromFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void ManchesterBaby::readFromFile(string path){
  ifstream file (path); //open a file stream at path
  if(file){ //if opened successfully
    string l; 
    size_t i = 0;
    while (getline(file, l)) { //get a line to l
      Line myline(l); //call the line string constructor for this line
      store.at(i) = myline; //save this line to the store at i
      i++;
    }
  }
  else {
    cout << "Unable to open file" << endl;
  }

  file.close(); //close the file

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x258, %rsp            # imm = 0x258
movq %rdi, %rbx
leaq 0x50(%rsp), %r14
movq %r14, %rdi
movl $0x8, %edx
callq 0x22a0
movq (%r14), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x70(%rsp,%rax)
je 0x4939
movq 0x66d3(%rip), %rbx      # 0xafc8
leaq 0x27ce(%rip), %rsi      # 0x70ca
movl $0x13, %edx
movq %rbx, %rdi
callq 0x2200
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21a0
movsbl %al, %esi
movq 0x66a1(%rip), %rdi      # 0xafc8
callq 0x2030
movq %rax, %rdi
callq 0x2120
jmp 0x4a17
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x40(%rsp), %r12
xorl %r15d, %r15d
leaq 0x30(%rsp), %r13
leaq 0x8(%rsp), %rbp
movq 0x50(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21a0
movsbl %al, %edx
movq %r14, %rdi
leaq 0x10(%rsp), %rsi
callq 0x2330
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x49fb
movq %r12, 0x30(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x5b04
movq %rbp, %rdi
movq %r13, %rsi
callq 0x616c
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x49cf
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21d0
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r15, %rdx
jbe 0x4a3d
movq 0x8(%rsp), %rcx
movq %rcx, (%rax,%r15,8)
incq %r15
movq %rbp, %rdi
callq 0x6258
jmp 0x495f
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x4a17
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x50(%rsp), %rdi
callq 0x2040
leaq 0x50(%rsp), %rdi
callq 0x2060
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2931(%rip), %rdi      # 0x7375
movq %r15, %rsi
xorl %eax, %eax
callq 0x2270
movq %rax, %rbx
jmp 0x4a9f
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x6258
jmp 0x4a83
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x4a83
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x4a83
jmp 0x4a80
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x4a9f
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x50(%rsp), %rdi
callq 0x2060
movq %rbx, %rdi
callq 0x2300
nop
// File: /workspace/github_cpp_makefile_star2_O1/czmccrory[P]ManchesterBaby/baby.cpp
// Function: ManchesterBaby::runBaby(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void ManchesterBaby::runBaby(string filename) {
	readFromFile(filename); //read the file
  cin.ignore(); //clear the cin
  cin.clear();

  int instruction;
  char temp;
  do {
    incrementCI(); //increment program counter
    fetch(); //get next line and save it to the PI
    instruction = decodeInstruction(); //get the decimal opcode number
    int operand = decodeOperand();
	  bool immAddressing = decodeAddressingMode();
    addressedExecute(instruction, operand, immAddressing);
    output(); //display the store, PI, CI, acucmulator
    cin.get(temp);
  } while (instruction != 7 && temp == '\n'); //run until the decoded opcode is halt/stop

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x5b04
movq %rbx, %rdi
movq %r14, %rsi
callq 0x48ba
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x4f48
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x6089(%rip), %r14      # 0xafd8
movq %r14, %rdi
callq 0x2320
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
xorl %esi, %esi
callq 0x22e0
leaq 0x18(%rbx), %r15
leaq 0x7(%rsp), %r12
incl 0x30(%rbx)
movq %rbx, %rdi
callq 0x2670
movq %r15, %rdi
callq 0x6386
movl %eax, %ebp
movq %r15, %rdi
callq 0x6396
movl %eax, %r13d
movq %r15, %rdi
callq 0x63f2
movq %rbx, %rdi
movl %ebp, %esi
movl %r13d, %edx
testb %al, %al
je 0x4fac
callq 0x46e2
jmp 0x4fb1
callq 0x4558
movq %rbx, %rdi
callq 0x4ab2
movq %r14, %rdi
movq %r12, %rsi
callq 0x2250
cmpl $0x7, %ebp
je 0x4fd0
cmpb $0xa, 0x7(%rsp)
je 0x4f71
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x4ff9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2300
nop