LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/temelmertcan[P]multgen/src/multgen.cpp
// Function: write_to_file(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>>>>>&)
void write_to_file (string file_name,
                    queue<string>& verilog){

  ofstream myfile;

  myfile.open (file_name);

  int indent_count = 0;

  while(!verilog.empty()) {
    string line = verilog.front();
    if (line.compare("indent") == 0)
      indent_count++;
    else if (line.compare("outdent") == 0)
      indent_count--;
    else {
      for (int i = 0; i<indent_count; i++)
        myfile << "    ";
      myfile << line << endl;
    }
    verilog.pop();
  }

  myfile.close();

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp            # imm = 0x228
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x248(%rbp), %r15
movq %r15, %rdi
callq 0x3370
movq %r15, %rdi
movq %r14, %rsi
movl $0x10, %edx
callq 0x30f0
movq 0x10(%rbx), %rax
cmpq %rax, 0x30(%rbx)
je 0x2965e
xorl %r14d, %r14d
leaq -0x48(%rbp), %r15
leaq 0x4f049(%rip), %r13     # 0x785d3
leaq -0x248(%rbp), %r12
leaq -0x38(%rbp), %rcx
movq %rcx, -0x48(%rbp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x2a8a4
movq %r15, %rdi
leaq 0x4e703(%rip), %rsi     # 0x77cb8
callq 0x3090
testl %eax, %eax
je 0x2962a
movq %r15, %rdi
leaq 0x4e766(%rip), %rsi     # 0x77d2e
callq 0x3090
testl %eax, %eax
je 0x2962f
movl %r14d, %r15d
testl %r14d, %r14d
jle 0x295ee
movl $0x4, %edx
movq %r12, %rdi
movq %r13, %rsi
callq 0x3240
decl %r15d
jne 0x295d9
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r12, %rdi
callq 0x3240
movq %rax, %r15
movq (%rax), %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
jmp 0x29632
incl %r14d
jmp 0x29632
decl %r14d
movq %rbx, %rdi
callq 0x2acee
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2964c
callq 0x31d0
movq 0x10(%rbx), %rax
cmpq %rax, 0x30(%rbx)
leaq -0x48(%rbp), %r15
jne 0x29591
leaq -0x248(%rbp), %rdi
callq 0x32c0
movq 0x5c957(%rip), %rax     # 0x85fc8
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq -0x240(%rbp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, -0x248(%rbp,%rcx)
callq 0x31b0
leaq -0x150(%rbp), %rdi
callq 0x30b0
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x296b6
jmp 0x296b6
movq %rax, %rbx
jmp 0x296d2
jmp 0x296bd
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x296d2
callq 0x31d0
leaq -0x248(%rbp), %rdi
callq 0x32f0
movq %rbx, %rdi
callq 0x33a0
// File: /workspace/github_cpp_makefile_star2_O3/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
pushq %rax
movq %rdx, %r15
movl %esi, %r14d
movq %rdi, %rbx
movslq %esi, %r13
movq %r13, %r12
shlq $0x5, %r12
leaq 0x8(%r12), %rax
testl %r13d, %r13d
movq $-0x1, %rdi
cmovnsq %rax, %rdi
callq 0x3030
leaq 0x8(%rax), %rcx
movq %r13, (%rax)
testl %r13d, %r13d
je 0x3ba17
addq $0x18, %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
addq $0x20, %rax
addq $-0x20, %r12
jne 0x3b9bf
movq %rcx, (%rbx)
testl %r14d, %r14d
setg %al
jle 0x3ba1a
movl %eax, -0x2c(%rbp)
movl %r14d, %r13d
shlq $0x5, %r13
xorl %r12d, %r12d
movq (%rbx), %rdi
movq 0x8(%rdi,%r12), %rdx
addq %r12, %rdi
xorl %esi, %esi
leaq 0x3dbfd(%rip), %rcx     # 0x79601
xorl %r8d, %r8d
callq 0x3310
addq $0x20, %r12
cmpq %r12, %r13
jne 0x3b9f0
jmp 0x3ba21
movq %rcx, (%rbx)
movl $0x0, -0x2c(%rbp)
movq (%r15), %r13
cmpq %r15, %r13
je 0x3ba62
leaq 0x3c62d(%rip), %r12     # 0x7805d
movslq 0x10(%r13), %rax
cmpl %r14d, %eax
jge 0x3ba59
movq (%rbx), %rcx
shlq $0x5, %rax
leaq (%rcx,%rax), %rdi
movq 0x8(%rcx,%rax), %rdx
movl $0x4, %r8d
xorl %esi, %esi
movq %r12, %rcx
callq 0x3310
movq (%r13), %r13
cmpq %r15, %r13
jne 0x3ba30
cmpb $0x0, -0x2c(%rbp)
je 0x3badc
movl %r14d, %r12d
xorl %r13d, %r13d
leaq 0x3db8c(%rip), %r14     # 0x79601
xorl %r15d, %r15d
movq (%rbx), %rdi
addq %r13, %rdi
movq %r14, %rsi
callq 0x3090
testb $0x1, %r15b
je 0x3baa6
movq (%rbx), %rcx
leaq (%rcx,%r13), %rdi
movq 0x8(%rcx,%r13), %rdx
testl %eax, %eax
je 0x3bab5
xorl %esi, %esi
movq %r14, %rcx
xorl %r8d, %r8d
jmp 0x3bac4
testl %eax, %eax
je 0x3bad7
movq (%rbx), %rdi
movq 0x8(%rdi,%r13), %rdx
addq %r13, %rdi
movl $0x4, %r8d
xorl %esi, %esi
leaq 0x3c599(%rip), %rcx     # 0x7805d
callq 0x3310
movb $0x1, %r15b
addq $0x20, %r13
decq %r12
jne 0x3ba78
jmp 0x3badc
xorl %r15d, %r15d
jmp 0x3bacc
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 $0x0, (%rdx)
cmpl $0x3, %edi
jl 0x65c87
movl %edi, %ebx
xorl %eax, %eax
movl $0x2, %ecx
movq $-0x4, %r15
incl %eax
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
mulsd 0x139bb(%rip), %xmm0    # 0x795f8
cvttsd2si %xmm0, %ecx
addq $0x4, %r15
cmpl %ebx, %ecx
jl 0x65c2c
movl %eax, (%rdx)
leaq 0x4(%r15), %rdi
callq 0x3030
movsd 0x1399c(%rip), %xmm1    # 0x795f8
movq %rax, (%r14)
cmpl $0x3, %ebx
jl 0x65c91
addq %r15, %rax
movl $0x2, %ecx
movl %ecx, (%rax)
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %ecx
addq $-0x4, %rax
cmpl %ebx, %ecx
jl 0x65c6c
jmp 0x65c91
xorl %edi, %edi
callq 0x3030
movq %rax, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x65d9a
movl %esi, %eax
movq %rax, -0x30(%rbp)
xorl %ebx, %ebx
leaq -0x90(%rbp), %r14
movq 0x20301(%rip), %r15     # 0x85fd0
leaq 0x1392a(%rip), %r12     # 0x79600
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 0x2ad8c
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 0x65d53
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 0x3b624
movq %r13, %rdi
callq 0x2acee
movq 0x10(%r13), %rax
cmpq %rax, 0x30(%r13)
jne 0x65d16
movq %r13, %rdi
movq %r14, %rsi
callq 0x6887c
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 0x2a726
incq %rbx
cmpq -0x30(%rbp), %rbx
jne 0x65cd6
movq 0x2022f(%rip), %rbx     # 0x85fd0
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 0x65dd9
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x2a726
movq %rbx, %rdi
callq 0x33a0
// File: /workspace/github_cpp_makefile_star2_O3/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 0x6a8a8
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 0x6a89f
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 0x2a8a4
movq %r13, %rdi
callq 0x2acee
movq %r12, %rdi
movq %r15, %rsi
callq 0x3b624
movq -0x60(%rbp), %rdi
cmpq %rbx, %rdi
je 0x6a895
callq 0x31d0
movq 0x10(%r13), %rax
cmpq %rax, 0x30(%r13)
jne 0x6a85e
incq %r14
cmpq -0x40(%rbp), %r14
jne 0x6a83a
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 0x6a8c8
callq 0x31d0
movq %r14, %rdi
callq 0x33a0
// File: /workspace/github_cpp_makefile_star2_O3/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 0x1b6e1(%rip), %r14     # 0x85fd0
leaq 0xed94(%rip), %rsi      # 0x7968a
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 0x6a9f9
movl %r15d, %ebx
xorl %r15d, %r15d
leaq -0x80(%rbp), %r12
leaq 0xc2d0(%rip), %r13      # 0x76c14
movl $0x4, %edx
movq %r14, %rdi
leaq 0xed4c(%rip), %rsi      # 0x7969f
callq 0x3240
movq %r14, %rdi
movl %r15d, %esi
callq 0x3380
movl $0x2, %edx
movq %rax, %rdi
leaq 0xe879(%rip), %rsi      # 0x791eb
callq 0x3240
leaq (%r15,%r15,4), %rsi
shlq $0x4, %rsi
addq -0x30(%rbp), %rsi
movq %r12, %rdi
callq 0x75b98
movq -0x70(%rbp), %rax
cmpq %rax, -0x50(%rbp)
je 0x6a9be
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 0x2acee
jmp 0x6a98b
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 0x2a726
incq %r15
cmpq %rbx, %r15
jne 0x6a944
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6aa0a
movq %rax, %rbx
leaq -0x80(%rbp), %rdi
callq 0x2a726
movq %rbx, %rdi
callq 0x33a0
// File: /workspace/github_cpp_makefile_star2_O3/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 0x25b2
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
movl -0x24(%rbp), %eax
testl %eax, %eax
je 0x2516
xorl %r15d, %r15d
leaq -0x30(%rbp), %r14
movq $0x0, -0x30(%rbp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x2500
movq $0x0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x250e
movq %rbx, %rdi
movq %r14, %rdx
callq 0x2920
movl -0x24(%rbp), %eax
incl %r15d
cmpl %eax, %r15d
jb 0x24dd
movl $0x0, -0x28(%rbp)
movq $0x0, -0x30(%rbp)
movq -0x248(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x5, -0x228(%rbp,%rax)
jne 0x2584
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 0x2549
movq 0x2a4d(%rip), %rax      # 0x4fd8
movq (%rax), %rcx
leaq 0xa9e(%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 0x25c6
jmp 0x25c6
movq %rax, %rbx
leaq -0x248(%rbp), %rdi
callq 0x2040
movq %rbx, %rdi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O3/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 0x28b7
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 0x28c7
leaq -0x30(%rbp), %rsi
movq %rbx, %rdi
callq 0x25dd
xorl %r14d, %r14d
testl %eax, %eax
jne 0x28dd
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x28ab
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 0x28ab
movq 0x270a(%rip), %rax      # 0x4fd8
movq (%rax), %rdi
leaq 0x81c(%rip), %rsi       # 0x30f4
movq %r14, %rdx
jmp 0x28f1
movq 0x26f4(%rip), %rax      # 0x4fd8
movq (%rax), %rdi
leaq 0x81c(%rip), %rsi       # 0x310a
movq %rbx, %rdx
xorl %eax, %eax
callq 0x2160
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
jmp 0x2896
movq %rax, %rbx
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x2918
movq -0x20(%rbp), %rsi
subq %rdi, %rsi
callq 0x2110
movq %rbx, %rdi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2d4f
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0x2d46
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x2d4c
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x2d4f
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x2d13
addl $-0x3, %r15d
jmp 0x2d4f
addl $-0x2, %r15d
jmp 0x2d4f
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 0x5a7e
leaq 0x42f6(%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 0x2dc7
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x2dce
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 0x2e0b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2e27
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 0x2e65
leaq (%rax,%rsi,8), %rdi
callq 0x6390
negl %eax
addq $0x28, %rbx
movq %rbx, %rdi
movl %eax, %esi
callq 0x63c6
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4509(%rip), %rdi      # 0x7375
xorl %eax, %eax
callq 0x2270
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2e92
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O3/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 0x33d5
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0x33cc
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x33d2
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x33d5
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x3399
addl $-0x3, %r15d
jmp 0x33d5
addl $-0x2, %r15d
jmp 0x33d5
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 0x5a7e
leaq 0x3c88(%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 0x344d
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x3454
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 0x3491
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x34ad
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x28(%rbx), %r14
movq %r14, %rdi
callq 0x6390
movl %eax, %r15d
movslq %ebp, %rsi
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rsi, %rdx
jbe 0x34f8
leaq (%rax,%rsi,8), %rdi
callq 0x6390
subl %eax, %r15d
movq %r14, %rdi
movl %r15d, %esi
callq 0x63c6
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3e76(%rip), %rdi      # 0x7375
xorl %eax, %eax
callq 0x2270
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3525
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2300
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x3611
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0x3608
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x360e
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x3611
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x35d5
addl $-0x3, %r15d
jmp 0x3611
addl $-0x2, %r15d
jmp 0x3611
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 0x5a7e
leaq 0x3a4a(%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 0x3689
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x3690
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 0x36cd
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x36e9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
addq $0x28, %rbx
movq %rbx, %rdi
callq 0x6390
subl %ebp, %eax
movq %rbx, %rdi
movl %eax, %esi
callq 0x63c6
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 0x372f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2300
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x3956(%rip), %rcx      # 0x70a1
movl $0x4, %r8d
xorl %esi, %esi
callq 0x2290
leaq 0x28(%rbx), %rdi
callq 0x6390
testl %eax, %eax
jns 0x3768
incl 0x30(%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x3803
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0x37fa
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x3800
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x3803
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x37c7
addl $-0x3, %r15d
jmp 0x3803
addl $-0x2, %r15d
jmp 0x3803
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 0x5a7e
leaq 0x386b(%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 0x387b
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x3882
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 0x38bf
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x38db
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x28(%rbx), %r14
movq %r14, %rdi
callq 0x6390
movl %eax, %r15d
movslq %ebp, %rsi
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rsi, %rdx
jbe 0x3927
leaq (%rax,%rsi,8), %rdi
callq 0x6390
imull %eax, %r15d
movq %r14, %rdi
movl %r15d, %esi
callq 0x63c6
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3a47(%rip), %rdi      # 0x7375
xorl %eax, %eax
callq 0x2270
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3954
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O3/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 0x39ca
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x39c1
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x39c7
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x39ca
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x398e
addl $-0x3, %r15d
jmp 0x39ca
addl $-0x2, %r15d
jmp 0x39ca
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 0x5a7e
leaq 0x36a3(%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 0x3a42
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x3a4a
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 0x3a87
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3aa3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
addq $0x28, %r14
movq %r14, %rdi
callq 0x6390
imull %eax, %ebx
movq %r14, %rdi
movl %ebx, %esi
callq 0x63c6
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 0x3aea
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O3/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 0x3b65
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0x3b5c
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x3b62
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x3b65
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x3b29
addl $-0x3, %r15d
jmp 0x3b65
addl $-0x2, %r15d
jmp 0x3b65
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 0x5a7e
leaq 0x3510(%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 0x3bdd
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x3be4
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 0x3c21
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3c3d
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 0x3c79
leaq (%rax,%rsi,8), %rdi
callq 0x6390
addq $0x28, %rbx
movq %rbx, %rdi
movl %eax, %esi
callq 0x63c6
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x36f5(%rip), %rdi      # 0x7375
xorl %eax, %eax
callq 0x2270
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3ca6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O3/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 0x3ead
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0x3ea4
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x3eaa
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x3ead
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x3e71
addl $-0x3, %r15d
jmp 0x3ead
addl $-0x2, %r15d
jmp 0x3ead
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 0x5a7e
leaq 0x31cf(%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 0x3f25
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x3f2c
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 0x3f69
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3f85
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x28(%rbx), %r14
movq %r14, %rdi
callq 0x6390
movl %eax, %r15d
movslq %ebp, %rsi
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rsi, %rdx
jbe 0x3fd0
leaq (%rax,%rsi,8), %rdi
callq 0x6390
addl %eax, %r15d
movq %r14, %rdi
movl %r15d, %esi
callq 0x63c6
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x339e(%rip), %rdi      # 0x7375
xorl %eax, %eax
callq 0x2270
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3ffd
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2300
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x4074
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x406b
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x4071
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x4074
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x4038
addl $-0x3, %r15d
jmp 0x4074
addl $-0x2, %r15d
jmp 0x4074
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 0x5a7e
leaq 0x3007(%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 0x40ec
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x40f4
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 0x4131
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x414d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
addq $0x28, %r14
movq %r14, %rdi
callq 0x6390
addl %eax, %ebx
movq %r14, %rdi
movl %ebx, %esi
callq 0x63c6
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 0x4193
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2300
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x420f
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0x4206
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x420c
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x420f
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x41d3
addl $-0x3, %r15d
jmp 0x420f
addl $-0x2, %r15d
jmp 0x420f
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 0x5a7e
leaq 0x2e74(%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 0x4287
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x428e
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 0x42cb
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x42e7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x28(%rbx), %rdi
callq 0x6390
movslq %ebp, %rsi
movq (%rbx), %rcx
movq 0x8(%rbx), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
cmpq %rsi, %rdx
jbe 0x4322
leaq (%rcx,%rsi,8), %rdi
negl %eax
movl %eax, %esi
callq 0x63c6
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x304c(%rip), %rdi      # 0x7375
xorl %eax, %eax
callq 0x2270
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x434f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2300
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x490d
movq 0x66ff(%rip), %rbx      # 0xafc8
leaq 0x27fa(%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 0x66cd(%rip), %rdi      # 0xafc8
callq 0x2030
movq %rax, %rdi
callq 0x2120
jmp 0x49f5
leaq 0x20(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
leaq 0x40(%rsp), %r15
xorl %r14d, %r14d
leaq 0x10(%rsp), %r12
leaq 0x30(%rsp), %r13
leaq 0x8(%rsp), %rbp
leaq (%rsp,%rax), %rdi
addq $0x50, %rdi
movl $0xa, %esi
callq 0x21a0
movsbl %al, %edx
leaq 0x50(%rsp), %rdi
movq %r12, %rsi
callq 0x2330
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x49d9
movq %r15, 0x30(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x5aec
movq %rbp, %rdi
movq %r13, %rsi
callq 0x6156
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x49a4
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21d0
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r14, %rdx
jbe 0x4a1b
movq 0x8(%rsp), %rcx
movq %rcx, (%rax,%r14,8)
incq %r14
movq %rbp, %rdi
callq 0x6242
movq 0x50(%rsp), %rax
movq -0x18(%rax), %rax
jmp 0x4938
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x49f5
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 0x2953(%rip), %rdi      # 0x7375
movq %r14, %rsi
xorl %eax, %eax
callq 0x2270
movq %rax, %rbx
jmp 0x4a7d
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x6242
jmp 0x4a61
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x4a61
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x4a61
jmp 0x4a5e
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x4a7d
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_O3/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 0x5aec
movq %rbx, %rdi
movq %r14, %rsi
callq 0x488e
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x4f26
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x60ab(%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 0x2644
movq %r15, %rdi
callq 0x6370
movl %eax, %ebp
movq %r15, %rdi
callq 0x6380
movl %eax, %r13d
movq %r15, %rdi
callq 0x63dc
movq %rbx, %rdi
movl %ebp, %esi
movl %r13d, %edx
testb %al, %al
je 0x4f8a
callq 0x46b6
jmp 0x4f8f
callq 0x452c
movq %rbx, %rdi
callq 0x4a90
movq %r14, %rdi
movq %r12, %rsi
callq 0x2250
cmpl $0x7, %ebp
je 0x4fae
cmpb $0xa, 0x7(%rsp)
je 0x4f4f
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 0x4fd7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2300
nop