LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/rellla[P]E3DC-Rscp/SocketConnection.cpp
// Function: SocketConnect(char const*, int)
int SocketConnect(const char *cpIpAddress, int iPort) {

    unsigned char ucBuffer[sizeof(struct in6_addr)];

    if(inet_pton(AF_INET, cpIpAddress, ucBuffer) <= 0) {
        printf("IP address %s cannot be converted.\n", cpIpAddress);
        return -1;
    }

    struct sockaddr_in server_addr;
    memset(&server_addr, 0, sizeof(server_addr));
    server_addr.sin_family = AF_INET;
    server_addr.sin_port = htons(iPort);
    server_addr.sin_addr = *((struct in_addr *) ucBuffer);

    int iSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
    if(iSocket < 0) {
        printf("Cannot create socket. Error %i errno %i.\n", iSocket, errno);
        return iSocket;
    }

    // 3 secs receive timeout setup
    struct timeval tv;
    tv.tv_sec = 3;
    tv.tv_usec = 0;
    setsockopt(iSocket, SOL_SOCKET, SO_RCVTIMEO, (struct timeval *) &tv, sizeof(struct timeval));
    // send time out should never occur on normal OS configurations but just in case set the timeout to 5 seconds
    tv.tv_sec = 5;
    tv.tv_usec = 0;
    setsockopt(iSocket, SOL_SOCKET, SO_SNDTIMEO, (struct timeval *) &tv, sizeof(struct timeval));

    int enable = 1;
    setsockopt(iSocket, IPPROTO_TCP, TCP_NODELAY, (char *) &enable, sizeof(enable));


    // wait 3 seconds for connection to get ready
    int iRetries = 3;
    if(connect(iSocket, (struct sockaddr *) &server_addr, sizeof(struct sockaddr)) < 0) {
        printf("Cannot connect to server. errno %i.\n", errno);
        close(iSocket);
        return -1;
    }

    return iSocket;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movl %esi, %ebx
movq %rdi, %r14
pushq $0x2
popq %rdi
leaq 0x20(%rsp), %rdx
movq %r14, %rsi
callq 0x22b0
testl %eax, %eax
jle 0xeb13
andq $0x0, 0x14(%rsp)
rolw $0x8, %bx
movw $0x2, 0xc(%rsp)
movw %bx, 0xe(%rsp)
movl 0x20(%rsp), %eax
movl %eax, 0x10(%rsp)
pushq $0x2
popq %rdi
pushq $0x1
popq %rsi
pushq $0x6
popq %rdx
callq 0x2050
movl %eax, %ebx
testl %eax, %eax
js 0xeb29
leaq 0x38(%rsp), %r14
movq $0x3, (%r14)
andq $0x0, 0x8(%r14)
pushq $0x1
popq %r15
pushq $0x14
popq %rdx
pushq $0x10
popq %rbp
movl %ebx, %edi
movl %r15d, %esi
movq %r14, %rcx
movl %ebp, %r8d
callq 0x2290
movq $0x5, (%r14)
andq $0x0, 0x8(%r14)
pushq $0x15
popq %rdx
movl %ebx, %edi
movl %r15d, %esi
movq %r14, %rcx
movl %ebp, %r8d
callq 0x2290
leaq 0x1c(%rsp), %rcx
movl $0x1, (%rcx)
pushq $0x6
popq %rsi
pushq $0x4
popq %r8
movl %ebx, %edi
movl %r15d, %edx
callq 0x2290
leaq 0xc(%rsp), %rsi
movl %ebx, %edi
movl %ebp, %edx
callq 0x2130
testl %eax, %eax
jns 0xeb40
callq 0x2030
movl (%rax), %esi
leaq 0xeff(%rip), %rdi       # 0xfa02
xorl %eax, %eax
callq 0x2040
movl %ebx, %edi
callq 0x22c0
jmp 0xeb24
leaq 0xe9a(%rip), %rdi       # 0xf9b4
movq %r14, %rsi
xorl %eax, %eax
callq 0x2040
pushq $-0x1
popq %rbx
jmp 0xeb40
callq 0x2030
movl (%rax), %edx
leaq 0xea1(%rip), %rdi       # 0xf9d8
movl %ebx, %esi
xorl %eax, %eax
callq 0x2040
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/rellla[P]E3DC-Rscp/SocketConnection.cpp
// Function: SocketSendData(int, unsigned char const*, int)
int SocketSendData(int iSocket, const unsigned char * ucBuffer, int iLength)
{
    // sanity check
    if(iSocket < 0) {
        return iSocket;
    }

    int iSentBytes = 0;
    while(iLength)
    {
        int result = send(iSocket, ucBuffer, iLength, 0);
        if(result <= 0) {
            return -1;
        }
        iSentBytes += result;
        ucBuffer += result;
        iLength -= result;
    }
    return iSentBytes;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edi, %ebx
testl %edi, %edi
js 0xebad
movl %edx, %ebp
movq %rsi, %r14
xorl %r15d, %r15d
pushq $-0x1
popq %r12
testl %ebp, %ebp
je 0xebaa
movslq %ebp, %rdx
movl %ebx, %edi
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x20c0
addl %eax, %r15d
movl %eax, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
addq %rcx, %r14
subl %eax, %ebp
testl %eax, %eax
jg 0xeb7e
movl %r12d, %ebx
jmp 0xebad
movl %r15d, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/saeefahmad[P]MIPS-pipeline-simulator/pipeline.cpp
// Function: finalize()
void finalize() {
  int i;
  for (i = 0; i < IMEMSIZE; i++)
    if (imem[i] != NULL)
      delete imem[i];
  delete[] imem;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
xorl %r15d, %r15d
pushq $0x5c
popq %rbx
movq 0x56b1(%rip), %rdi      # 0x9110
cmpq $0x100, %r15            # imm = 0x100
je 0x3a89
movq (%rdi,%r15,8), %r14
testq %r14, %r14
je 0x3a84
movq %r14, %rdi
callq 0x4578
movq %r14, %rdi
movq %rbx, %rsi
callq 0x20e0
incq %r15
jmp 0x3a58
testq %rdi, %rdi
je 0x3a98
popq %rbx
popq %r14
popq %r15
jmp 0x2100
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/saeefahmad[P]MIPS-pipeline-simulator/pipeline.cpp
// Function: resolveDependence(Instruction&)
bool resolveDependence(Instruction& _instr) {
	instr = _instr;
	bool flag = 0;
	if(instr.isAluReg()){
		if(instr.getDecodeCycle() < regDependence[instr.getArg2()] || instr.getDecodeCycle() < regDependence[instr.getArg3()]){
			flag = 0;
		} else {
			flag = 1;
		}
		if((instr.getDecodeCycle() + 3) > regDependence[instr.getArg1()]){
			regDependence[instr.getArg1()] = instr.getDecodeCycle() + 3;
		}
	} else if(instr.isAluImm()){
		if(instr.getDecodeCycle() < regDependence[instr.getArg2()]){
			flag = 0;
		} else {
			flag = 1;
		}
		if((instr.getDecodeCycle() + 3) > regDependence[instr.getArg1()]){
			regDependence[instr.getArg1()] = instr.getDecodeCycle() + 3;
		}
	} else if(instr.isBranch()){
		if(instr.getDecodeCycle() < regDependence[instr.getArg1()]){
			flag = 0;
		} else {
			flag = 1;
		}
	} else if(instr.isLoad()){
		if(instr.getDecodeCycle() < regDependence[instr.getArg2()]){
			flag = 0;
		} else {
			flag = 1;
		}
		if((instr.getDecodeCycle() + 3) > regDependence[instr.getArg1()]){
			regDependence[instr.getArg1()] = instr.getDecodeCycle() + 3;
		}
	} else if(instr.isStore()){
		if(instr.getDecodeCycle() < regDependence[instr.getArg2()]){
			flag = 0;
		} else {
			flag = 1;
		}
	}
	return flag;
}

// Assembly:
pushq %rax
movq %rdi, %rsi
leaq 0x5b8d(%rip), %rdi      # 0x9644
callq 0x4514
movl 0x5b82(%rip), %edx      # 0x9644
leal -0x1(%rdx), %eax
cmpl $0x6, %eax
ja 0x3aed
movl 0x5bac(%rip), %edx      # 0x967c
xorl %eax, %eax
testl %edx, %edx
setne %al
movl 0x5b6f(%rip), %esi      # 0x964c
leaq 0x5bbc(%rip), %rcx      # 0x96a0
cmpl %eax, (%rcx,%rsi,4)
jle 0x3b2e
xorl %eax, %eax
jmp 0x3b3a
andl $-0x2, %edx
movl 0x5b86(%rip), %ecx      # 0x967c
xorl %eax, %eax
testl %ecx, %ecx
setne %al
cmpl $0x8, %edx
jne 0x3b53
movl 0x5b44(%rip), %esi      # 0x964c
leaq 0x5b91(%rip), %rdx      # 0x96a0
cmpl %eax, (%rdx,%rsi,4)
setle %al
cmpl $0x1, %ecx
pushq $0x3
popq %rcx
sbbl $-0x1, %ecx
movl 0x5b24(%rip), %esi      # 0x9648
cmpl (%rdx,%rsi,4), %ecx
jle 0x3b66
movl %ecx, (%rdx,%rsi,4)
jmp 0x3b66
movl 0x5b1c(%rip), %esi      # 0x9650
cmpl %eax, (%rcx,%rsi,4)
setle %al
cmpl $0x1, %edx
pushq $0x3
popq %rdx
sbbl $-0x1, %edx
movl 0x5aff(%rip), %esi      # 0x9648
cmpl (%rcx,%rsi,4), %edx
jle 0x3b66
movl %edx, (%rcx,%rsi,4)
jmp 0x3b66
movl 0x5aef(%rip), %ecx      # 0x9648
leaq 0x5b40(%rip), %rdx      # 0x96a0
cmpl %eax, (%rdx,%rcx,4)
setle %al
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O2/saeefahmad[P]MIPS-pipeline-simulator/stage.cpp
// Function: AbstractStage::createStage(_StageType, AbstractStage*)
AbstractStage* AbstractStage::createStage(StageType _type, AbstractStage *_prevStage) {
  // Create a new stage of type _type and set the previous stage to _prevStage
  // Return the newly created stage

	AbstractStage* temp;
	switch (_type) {
	case 0:
		temp = new FetchStage(_type, _prevStage);
		break;
	case 1:
		temp = new DecodeStage(_type, _prevStage);
		break;
	case 2:
		temp = new ExecuteStage(_type, _prevStage);
		break;
	case 3:
		temp = new MemaccessStage(_type, _prevStage);
		break;
	case 4:
		temp = new WritebackStage(_type, _prevStage);
		break;
	}
	return temp;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movl %edi, %ebp
movl $0x80, %edi
callq 0x20d0
movq %rax, %rbx
movl %ebp, %eax
leaq 0x13df(%rip), %rcx      # 0x516c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x3e50
jmp 0x3de3
pushq $0x4
popq %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x4340
jmp 0x3de3
pushq $0x2
popq %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x40d4
jmp 0x3de3
pushq $0x3
popq %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x4258
jmp 0x3de3
pushq $0x1
popq %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x3f74
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x3df3
jmp 0x3df3
jmp 0x3df3
jmp 0x3df3
movq %rax, %r14
movl $0x80, %esi
movq %rbx, %rdi
callq 0x20e0
movq %r14, %rdi
callq 0x2140
nop
// File: /workspace/github_cpp_makefile_star2_O2/saeefahmad[P]MIPS-pipeline-simulator/fetch.cpp
// Function: FetchStage::process()
void FetchStage::process() {
  // process for this step
  if(getPc()/4 < getInstrCount()){
	  Instruction instr;
	  instr = this->getNextIns();
	  this->nextStage->setInstruction(instr);
	  this->incStatistics((StatisticsType) 1);
	  setPc(this->getPc()+4);
  } else {
	  Instruction instr;
	  instr = this->ins;
	  this->nextStage->setInstruction(instr);
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x60, %rsp
movq %rdi, %rbx
leaq 0x582c(%rip), %r14      # 0x96c8
callq *(%r14)
pushq $0x4
popq %rcx
cltd
idivl %ecx
movl %eax, %ebp
leaq 0x582a(%rip), %rax      # 0x96d8
callq *(%rax)
cmpl %eax, %ebp
jge 0x3f04
leaq 0x4(%rsp), %rdi
callq 0x4438
leaq 0x582b(%rip), %rax      # 0x96f0
callq *(%rax)
leaq 0x4(%rsp), %rdi
movq %rax, %rsi
callq 0x4514
movq 0x78(%rbx), %rdi
leaq 0x4(%rsp), %rsi
callq 0x3e2a
leaq 0x5847(%rip), %rax      # 0x9730
pushq $0x1
popq %rdi
callq *(%rax)
leaq 0x57db(%rip), %rax      # 0x96d0
movq (%rax), %rbx
callq *(%r14)
addl $0x4, %eax
movl %eax, %edi
callq *%rbx
jmp 0x3f2b
leaq 0x4(%rsp), %r14
movq %r14, %rdi
callq 0x4438
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x4514
movq 0x78(%rbx), %rdi
leaq 0x4(%rsp), %rsi
callq 0x3e2a
leaq 0x4(%rsp), %rdi
callq 0x4578
addq $0x60, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x3f40
movq %rax, %rbx
leaq 0x4(%rsp), %rdi
callq 0x4578
movq %rbx, %rdi
callq 0x2140
nop
// File: /workspace/github_cpp_makefile_star2_O2/saeefahmad[P]MIPS-pipeline-simulator/decode.cpp
// Function: DecodeStage::process()
void DecodeStage::process() {
	if(resolveDependence(this->ins)){
		this->setStalled();
	} else {
		this->setUnstalled();
	}
	if(this->isStalled()){
		this->incStatistics((StatisticsType) 0);
	}

	Instruction instr;
	instr = this->ins;
	if(!instr.isNop() && !this->isStalled()){
		if(instr.isAluReg()){
			instr.setA(this->getReg(instr.getArg2()));
			instr.setB(this->getReg(instr.getArg3()));
		} else if(instr.isAluImm()){
			instr.setA(this->getReg(instr.getArg2()));
			instr.setB(this->getReg(instr.getArg1()));
		} else if(instr.isMemory()){
			instr.setA(this->getReg(instr.getArg2()));
			instr.setB(this->getReg(instr.getArg1()));
		} else if(instr.isBranch()){
			instr.setA(this->getReg(instr.getArg1()));
		} else if(instr.isHlt()){
		}
	}
	this->nextStage->setInstruction(instr);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x60, %rsp
movq %rdi, %rbx
leaq 0x571d(%rip), %rax      # 0x96e0
leaq 0x8(%rdi), %r14
movq %r14, %rdi
callq *(%rax)
movq %rbx, %rdi
testb %al, %al
je 0x3fda
callq 0x3e0c
jmp 0x3fdf
callq 0x3e1a
cmpb $0x1, 0x64(%rbx)
jne 0x3ff0
leaq 0x5744(%rip), %rax      # 0x9730
xorl %edi, %edi
callq *(%rax)
leaq 0x4(%rsp), %r15
movq %r15, %rdi
callq 0x4438
movq %r15, %rdi
movq %r14, %rsi
callq 0x4514
movl 0x4(%rsp), %eax
testl %eax, %eax
je 0x4069
cmpb $0x0, 0x64(%rbx)
jne 0x4069
cmpl $0x7, %eax
ja 0x402f
leaq 0x56de(%rip), %rax      # 0x9700
movl 0xc(%rsp), %edi
callq *(%rax)
leaq 0x10(%rsp), %rcx
jmp 0x4053
andl $-0x2, %eax
cmpl $0x8, %eax
je 0x4041
cmpl $0xc, %eax
je 0x408b
cmpl $0xa, %eax
jne 0x4069
leaq 0x56b8(%rip), %rax      # 0x9700
movl 0xc(%rsp), %edi
callq *(%rax)
leaq 0x8(%rsp), %rcx
movl %eax, 0x1c(%rsp)
leaq 0x56a2(%rip), %rax      # 0x9700
movl (%rcx), %edi
callq *(%rax)
leaq 0x20(%rsp), %rcx
movl %eax, (%rcx)
movq 0x78(%rbx), %rdi
leaq 0x4(%rsp), %rsi
callq 0x3e2a
leaq 0x4(%rsp), %rdi
callq 0x4578
addq $0x60, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x566e(%rip), %rax      # 0x9700
movl 0x8(%rsp), %edi
callq *(%rax)
leaq 0x1c(%rsp), %rcx
jmp 0x4067
movq %rax, %rbx
leaq 0x4(%rsp), %rdi
callq 0x4578
movq %rbx, %rdi
callq 0x2140
// File: /workspace/github_cpp_makefile_star2_O2/saeefahmad[P]MIPS-pipeline-simulator/execute.cpp
// Function: ExecuteStage::process()
void ExecuteStage::process() {
	Instruction instr;
	instr = this->ins;
	if(!instr.isNop() && !this->isStalled()){
		switch (instr.getType()){
		case 1: // ADD
			instr.setAluOut((instr.getA() + instr.getB()));
			break;
		case 2: // SUB
			instr.setAluOut((instr.getA() - instr.getB()));
			break;
		case 3: // MUL
			instr.setAluOut((instr.getA() * instr.getB()));
			break;
		case 4: // DIV
			if(instr.getB() != 0)
				instr.setAluOut((instr.getA() / instr.getB()));
			break;
		case 5: // XOR
			instr.setAluOut((instr.getA() ^ instr.getB()));
			break;
		case 6: // AND
			instr.setAluOut((instr.getA() & instr.getB()));
			break;
		case 7: // OR
			instr.setAluOut((instr.getA() | instr.getB()));
			break;
		case 8: // ADDI
			instr.setAluOut((instr.getA() + instr.getImmidiate()));
			break;
		case 9: // SUBI
			instr.setAluOut((instr.getA() - instr.getImmidiate()));
			break;
		case 10: // LD
			instr.setAluOut((instr.getA() + instr.getImmidiate()));
			break;
		case 11: // ST
			instr.setAluOut((instr.getA() + instr.getImmidiate()));
			break;
		case 12: // BEQZ
			instr.setAluOut((this->getPc() + (instr.getImmidiate()<<2)));
			instr.setCond(instr.getA() == 0);
			break;
		case 13: // BNEQZ
			instr.setAluOut((this->getPc() + (instr.getImmidiate()<<2)));
			instr.setCond(instr.getA() != 0);
			break;
		default:
			break;
		}
	}
	this->nextStage->setInstruction(instr);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
leaq 0xc(%rsp), %r14
movq %r14, %rdi
callq 0x4438
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x4514
movl 0xc(%rsp), %eax
testl %eax, %eax
je 0x41dc
cmpb $0x0, 0x64(%rbx)
jne 0x41dc
decl %eax
cmpl $0xc, %eax
ja 0x41dc
leaq 0x10fd(%rip), %rcx      # 0x5258
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0x1c(%rsp), %eax
jmp 0x41d4
leaq 0x5557(%rip), %rax      # 0x96c8
callq *(%rax)
movl 0x1c(%rsp), %ecx
leal (%rax,%rcx,4), %eax
movl %eax, 0x2c(%rsp)
cmpl $0x0, 0x24(%rsp)
sete 0x40(%rsp)
jmp 0x41dc
movl 0x28(%rsp), %eax
xorl 0x24(%rsp), %eax
jmp 0x41d8
leaq 0x552d(%rip), %rax      # 0x96c8
callq *(%rax)
movl 0x1c(%rsp), %ecx
leal (%rax,%rcx,4), %eax
movl %eax, 0x2c(%rsp)
cmpl $0x0, 0x24(%rsp)
setne 0x40(%rsp)
jmp 0x41dc
movl 0x28(%rsp), %eax
imull 0x24(%rsp), %eax
jmp 0x41d8
movl 0x28(%rsp), %ecx
testl %ecx, %ecx
je 0x41dc
movl 0x24(%rsp), %eax
cltd
idivl %ecx
jmp 0x41d8
movl 0x28(%rsp), %eax
addl 0x24(%rsp), %eax
movl %eax, 0x2c(%rsp)
movq 0x78(%rbx), %rdi
leaq 0xc(%rsp), %rsi
callq 0x3e2a
leaq 0xc(%rsp), %rdi
callq 0x4578
addq $0x68, %rsp
popq %rbx
popq %r14
retq
movl 0x24(%rsp), %eax
subl 0x28(%rsp), %eax
jmp 0x41d8
movl 0x28(%rsp), %eax
andl 0x24(%rsp), %eax
jmp 0x41d8
movl 0x28(%rsp), %eax
orl 0x24(%rsp), %eax
jmp 0x41d8
movl 0x24(%rsp), %eax
subl 0x1c(%rsp), %eax
jmp 0x41d8
movq %rax, %rbx
leaq 0xc(%rsp), %rdi
callq 0x4578
movq %rbx, %rdi
callq 0x2140
nop
// File: /workspace/github_cpp_makefile_star2_O2/saeefahmad[P]MIPS-pipeline-simulator/memaccess.cpp
// Function: MemaccessStage::process()
void MemaccessStage::process() {
	Instruction instr;
	instr = this->ins;
	if(!instr.isNop() && !this->isStalled()){
		if(instr.isMemory()){
			if(instr.isLoad()){
				instr.setLoadMemData(this->getData(instr.getAluOut()));
			} else if(instr.isStore()){
				this->setData(instr.getAluOut(), instr.getB());
				this->incStatistics((StatisticsType) 2);
			}
		} else if(instr.isBranch()){
			if(instr.getCond()){
				this->setPc(instr.getAluOut());
			}
			this->incStatistics((StatisticsType) 2);
		}

	}
	this->nextStage->setInstruction(instr);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
leaq 0xc(%rsp), %r14
movq %r14, %rdi
callq 0x4438
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x4514
movl 0xc(%rsp), %eax
testl %eax, %eax
je 0x42ed
cmpb $0x0, 0x64(%rbx)
jne 0x42ed
andl $-0x2, %eax
cmpl $0xc, %eax
jne 0x42ed
cmpb $0x1, 0x40(%rsp)
jne 0x42e1
leaq 0x53f5(%rip), %rax      # 0x96d0
movl 0x2c(%rsp), %edi
callq *(%rax)
leaq 0x5448(%rip), %rax      # 0x9730
pushq $0x2
popq %rdi
callq *(%rax)
movq 0x78(%rbx), %rdi
leaq 0xc(%rsp), %rsi
callq 0x3e2a
leaq 0xc(%rsp), %rdi
callq 0x4578
addq $0x68, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0xc(%rsp), %rdi
callq 0x4578
movq %rbx, %rdi
callq 0x2140
// File: /workspace/github_cpp_makefile_star2_O2/saeefahmad[P]MIPS-pipeline-simulator/writeback.cpp
// Function: WritebackStage::process()
void WritebackStage::process() {
	Instruction instr;
	instr = this->ins;
	if(!instr.isNop() && !this->isStalled()){
		if(instr.isAluReg()){
			this->setReg(instr.getArg1(), instr.getAluOut());
			this->incStatistics((StatisticsType) 2);
		} else if(instr.isAluImm()){
			this->setReg(instr.getArg1(), instr.getAluOut());
			this->incStatistics((StatisticsType) 2);
		} else if(instr.isLoad()){
			this->setReg(instr.getArg1(), instr.getLoadMemData());
			this->incStatistics((StatisticsType) 2);
		} else if(instr.isHlt()){
			this->incStatistics((StatisticsType) 2);
			this->stopSimulation();
		}
	}
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
leaq 0xc(%rsp), %r14
movq %r14, %rdi
callq 0x4438
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x4514
cmpl $0x0, 0xc(%rsp)
je 0x43c9
cmpb $0x0, 0x64(%rbx)
jne 0x43c9
leaq 0x5355(%rip), %rax      # 0x9708
movl 0x10(%rsp), %edi
movl 0x2c(%rsp), %esi
callq *(%rax)
leaq 0x536c(%rip), %rax      # 0x9730
pushq $0x2
popq %rdi
callq *(%rax)
leaq 0xc(%rsp), %rdi
callq 0x4578
addq $0x68, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0xc(%rsp), %rdi
callq 0x4578
movq %rbx, %rdi
callq 0x2140
// File: /workspace/github_cpp_makefile_star2_O2/saeefahmad[P]MIPS-pipeline-simulator/instruction.cpp
// Function: Instruction::Instruction(Instruction&)
Instruction::Instruction(Instruction& inst) {
  init(inst.type, inst.arg1, inst.arg2, inst.arg3, inst.immidiate, inst.address);
  A = inst.A;
  B = inst.B;
  cond = inst.cond;
  decodeCycle = inst.decodeCycle;
  aluOut = inst.aluOut;
  loadMemData = inst.loadMemData;
  fetchedAtCycle = inst.fetchedAtCycle;
  srcCycle1 = inst.srcCycle1;
  srcCycle2 = inst.srcCycle2;
}

// Assembly:
movups (%rsi), %xmm0
andl $0x0, 0x38(%rdi)
movups 0x10(%rsi), %xmm1
movups %xmm0, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x25(%rdi)
movups 0x18(%rsi), %xmm0
movlhps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
movups %xmm1, 0x10(%rdi)
movb 0x34(%rsi), %al
movb %al, 0x34(%rdi)
movl 0x38(%rsi), %eax
movl %eax, 0x38(%rdi)
movups 0x20(%rsi), %xmm0
movups %xmm0, 0x20(%rdi)
movl 0x30(%rsi), %eax
movl %eax, 0x30(%rdi)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/saeefahmad[P]MIPS-pipeline-simulator/instruction.cpp
// Function: Instruction::operator=(Instruction&)
Instruction& Instruction::operator=(Instruction& rhs) {
  if (this == &rhs)
    return *this;
  init(rhs.type, rhs.arg1, rhs.arg2, rhs.arg3, rhs.immidiate, rhs.address);
  A = rhs.A;
  B = rhs.B;
  cond = rhs.cond;
  decodeCycle = rhs.decodeCycle;
  aluOut = rhs.aluOut;
  loadMemData = rhs.loadMemData;
  fetchedAtCycle = rhs.fetchedAtCycle;
  srcCycle1 = rhs.srcCycle1;
  srcCycle2 = rhs.srcCycle2;
  return *this;
}

// Assembly:
movq %rdi, %rax
cmpq %rsi, %rdi
je 0x455a
movups (%rsi), %xmm0
andl $0x0, 0x38(%rax)
movups 0x10(%rsi), %xmm1
movups %xmm0, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rax)
movups %xmm0, 0x25(%rax)
movups 0x18(%rsi), %xmm0
movlhps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
movups %xmm1, 0x10(%rax)
movb 0x34(%rsi), %cl
movb %cl, 0x34(%rax)
movl 0x38(%rsi), %ecx
movl %ecx, 0x38(%rax)
movups 0x20(%rsi), %xmm0
movups %xmm0, 0x20(%rax)
movl 0x30(%rsi), %ecx
movl %ecx, 0x30(%rax)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/ArashPartow[P]exprtk-extras/exprtk_montecarlo_option_pricing_model.cpp
// Function: normal_distribution<double>::normal_distribution()
normal_distribution()
   : exprtk::ifunction<T>(2)
   {
      std::random_device device;
      std::array<unsigned int,std::mt19937::state_size> seed;
      std::generate_n(seed.data(), seed.size(), std::ref(device));
      std::seed_seq seq(std::begin(seed), std::end(seed));
      generator.seed(seq);
   }

// Assembly:
pushq %r14
pushq %rbx
subq $0x1d68, %rsp           # imm = 0x1D68
movq %rdi, %rbx
movw $0x100, 0x8(%rdi)       # imm = 0x100
andq $0x0, 0x10(%rdi)
orq $-0x1, 0x18(%rdi)
movq $0x2, 0x20(%rdi)
leaq 0x250bf0(%rip), %rax    # 0x361518
movq %rax, (%rdi)
addq $0x28, %rbx
movq %rbx, %rdi
callq 0x1119e8
leaq 0x9e0(%rsp), %r14
movq %r14, %rdi
callq 0x1119f2
leaq 0x20(%rsp), %rdi
movl $0x270, %esi            # imm = 0x270
movq %r14, %rdx
callq 0x111a47
leaq 0x9e0(%rsp), %rdx
leaq 0x8(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x111a76
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x111ae4
leaq 0x8(%rsp), %rdi
callq 0x111ece
leaq 0x9e0(%rsp), %rdi
callq 0x111b5e
addq $0x1d68, %rsp           # imm = 0x1D68
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x111ece
jmp 0x1109b3
jmp 0x1109b0
movq %rax, %rbx
leaq 0x9e0(%rsp), %rdi
callq 0x111b5e
movq %rbx, %rdi
callq 0x10e340
// File: /workspace/github_cpp_makefile_star2_O2/FR13ndSDP[P]NHT/main.cpp
// Function: initialize(int, double, double, double, double, double, std::vector<double, std::allocator<double>>&, std::vector<double, std::allocator<double>>&)
int initialize(int N, double L, double Tw, double TA, double A1, double K, Vec &T, Vec &position)
{
    for (int i=0; i<N; i++)
    {
        position[i] = L/(2*N)+L/N*i;
        T[i] = Tw-A1*(TA-Tw)/K*position[i];
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leal (%rdi,%rdi), %eax
cvtsi2sd %eax, %xmm6
movapd %xmm0, %xmm5
divsd %xmm6, %xmm5
cvtsi2sd %edi, %xmm6
divsd %xmm6, %xmm0
subsd %xmm1, %xmm2
xorpd 0x2b8d(%rip), %xmm2     # 0x5010
movq (%rdx), %rax
mulsd %xmm3, %xmm2
divsd %xmm4, %xmm2
movq (%rsi), %rcx
xorl %edx, %edx
testl %edi, %edi
cmovlel %edx, %edi
cmpq %rdx, %rdi
je 0x24c0
cvtsi2sd %edx, %xmm3
mulsd %xmm0, %xmm3
addsd %xmm5, %xmm3
movsd %xmm3, (%rax,%rdx,8)
mulsd %xmm2, %xmm3
addsd %xmm1, %xmm3
movsd %xmm3, (%rcx,%rdx,8)
incq %rdx
jmp 0x2498
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/FR13ndSDP[P]NHT/Parameters.cpp
// Function: Parameters::Parameters()
Parameters::Parameters()
{
    uS = 1;
    B_L = 3;
    B_R = 3;
    Q_L = 0;
    Q_R = 0;
    L = 0.3;
    N = 64;
    dt = 60;
    A1 = 6;
    A2 = 35;
    RHOC = 1.05e6;
    K = 0.85;
    TA = 20;
    TB = -10;
    solver = "TDMA";
    P = 1e-6;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
leaq 0x68(%rdi), %rbx
leaq 0x78(%rdi), %rax
movq %rax, 0x68(%rdi)
andq $0x0, 0x70(%rdi)
movb $0x0, 0x78(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x58(%rdi)
movabsq $0x3fd3333333333333, %rax # imm = 0x3FD3333333333333
movq %rax, 0x18(%rdi)
movaps 0x20ed(%rip), %xmm0     # 0x50f0
movups %xmm0, (%rdi)
movabsq $0x404e000000000000, %rax # imm = 0x404E000000000000
movq %rax, 0x10(%rdi)
movabsq $0x4018000000000000, %rax # imm = 0x4018000000000000
movq %rax, 0x20(%rdi)
movabsq $0x4041800000000000, %rax # imm = 0x4041800000000000
movq %rax, 0x28(%rdi)
movabsq $0x4130059000000000, %rax # imm = 0x4130059000000000
movq %rax, 0x30(%rdi)
movabsq $0x3feb333333333333, %rax # imm = 0x3FEB333333333333
movq %rax, 0x38(%rdi)
movabsq $0x4034000000000000, %rax # imm = 0x4034000000000000
movq %rax, 0x40(%rdi)
movabsq $-0x3fdc000000000000, %rax # imm = 0xC024000000000000
movq %rax, 0x48(%rdi)
leaq 0x2091(%rip), %rsi      # 0x5100
movq %rbx, %rdi
callq 0x22d0
movabsq $0x3eb0c6f7a0b5ed8d, %rax # imm = 0x3EB0C6F7A0B5ED8D
movq %rax, 0x50(%r14)
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x20c0
movq %r14, %rdi
callq 0x2290
nop
// File: /workspace/github_cpp_makefile_star2_O2/FR13ndSDP[P]NHT/Parameters.cpp
// Function: Parameters::outputFile(std::vector<double, std::allocator<double>>, std::vector<double, std::allocator<double>>)
int Parameters::outputFile(Vec vec_1, Vec vec_2)
{
    ofstream outfile;
    outfile.open("temperature.dat");
//    outfile << "Title = \"The temperature distribution\"" << endl;
//    outfile << "Variables = \"x/m\", \"T/'C\""<<endl;
    for (int i=0; i< vec_1.size(); i++)
    {
        outfile << vec_1[i] << " " << vec_2[i] << endl;
    }
    outfile.close();
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rdx, %rbx
movq %rsi, %r14
leaq -0x228(%rbp), %r15
movq %r15, %rdi
callq 0x2270
leaq 0x1b09(%rip), %rsi      # 0x517b
pushq $0x10
popq %rdx
movq %r15, %rdi
callq 0x2030
xorl %r13d, %r13d
leaq 0x1af2(%rip), %r12      # 0x5179
movq (%r14), %rax
movq 0x8(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r13, %rcx
jbe 0x36d1
movsd (%rax,%r13,8), %xmm0
movq %r15, %rdi
callq 0x2240
movq %rax, %rdi
movq %r12, %rsi
callq 0x21c0
movq (%rbx), %rcx
movsd (%rcx,%r13,8), %xmm0
movq %rax, %rdi
callq 0x2240
movq %rax, %rdi
callq 0x20d0
incq %r13
jmp 0x3687
leaq -0x228(%rbp), %rdi
callq 0x2210
leaq -0x228(%rbp), %rdi
callq 0x2220
xorl %eax, %eax
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x36ff
movq %rax, %rbx
leaq -0x228(%rbp), %rdi
callq 0x2220
movq %rbx, %rdi
callq 0x2290
// File: /workspace/github_cpp_makefile_star2_O2/FR13ndSDP[P]NHT/Parameters.cpp
// Function: Parameters::Coeff(std::vector<double, std::allocator<double>>&, std::vector<double, std::allocator<double>>&, std::vector<double, std::allocator<double>>&)
void Parameters::Coeff(Vec &aW, Vec &aP, Vec &aE)
{
    double dx = L/N;
    for (int i=0; i<N; i++)
    {
        aW[i] = K/dx;
        aE[i] = aW[i];
        aP[i] = aW[i]+aE[i]+ uS*RHOC*dx/dt;
    }
    aE[N-1] = 0;
    aW[0] = 0;
    // left boundary
    if (B_L == 1)
        aP[0] += K/dx;
    else if (B_L == 2)
        aP[0] += -K/dx;
    else
        aP[0] += (-K/dx + 1/(1/A1+dx/(2*K)));
    // right boundary
    if (B_R == 1)
        aP[N-1] += K/dx;
    else if (B_R == 2)
        aP[N-1] += -K/dx;
    else
        aP[N-1] += (-K/dx + 1/(1/A2+dx/(2*K)));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq (%rdi), %rax
cvtsi2sd %eax, %xmm1
movsd 0x18(%rdi), %xmm0
divsd %xmm1, %xmm0
movq (%rsi), %rsi
movq (%rcx), %r8
cvtsi2sdl 0x4(%rdi), %xmm1
movq (%rdx), %rcx
xorl %edx, %edx
testl %eax, %eax
movl $0x0, %r9d
cmovgl %eax, %r9d
cmpq %rdx, %r9
je 0x3784
movsd 0x38(%rdi), %xmm2
divsd %xmm0, %xmm2
movsd %xmm2, (%rsi,%rdx,8)
movsd %xmm2, (%r8,%rdx,8)
addsd (%rsi,%rdx,8), %xmm2
movsd 0x30(%rdi), %xmm3
mulsd %xmm1, %xmm3
mulsd %xmm0, %xmm3
divsd 0x10(%rdi), %xmm3
addsd %xmm2, %xmm3
movsd %xmm3, (%rcx,%rdx,8)
incq %rdx
jmp 0x3746
andq $0x0, -0x8(%r8,%rax,8)
andq $0x0, (%rsi)
movl 0x8(%rdi), %edx
movsd 0x38(%rdi), %xmm1
cmpl $0x1, %edx
je 0x37ae
cmpl $0x2, %edx
jne 0x37b8
movsd (%rcx), %xmm2
divsd %xmm0, %xmm1
subsd %xmm1, %xmm2
jmp 0x37ed
divsd %xmm0, %xmm1
addsd (%rcx), %xmm1
jmp 0x37f1
movsd 0x1868(%rip), %xmm2     # 0x5028
movapd %xmm2, %xmm3
divsd 0x20(%rdi), %xmm3
movapd %xmm1, %xmm4
addsd %xmm1, %xmm4
movapd %xmm0, %xmm5
divsd %xmm4, %xmm5
addsd %xmm3, %xmm5
divsd %xmm5, %xmm2
divsd %xmm0, %xmm1
subsd %xmm1, %xmm2
addsd (%rcx), %xmm2
movapd %xmm2, %xmm1
movsd %xmm1, (%rcx)
movl 0xc(%rdi), %edx
movsd 0x38(%rdi), %xmm1
cmpl $0x2, %edx
je 0x3819
cmpl $0x1, %edx
jne 0x3829
divsd %xmm0, %xmm1
addsd -0x8(%rcx,%rax,8), %xmm1
movsd %xmm1, -0x8(%rcx,%rax,8)
jmp 0x3862
movsd -0x8(%rcx,%rax,8), %xmm2
divsd %xmm0, %xmm1
subsd %xmm1, %xmm2
jmp 0x385c
movsd 0x17f7(%rip), %xmm2     # 0x5028
movapd %xmm2, %xmm3
divsd 0x28(%rdi), %xmm3
movapd %xmm1, %xmm4
addsd %xmm1, %xmm4
divsd %xmm0, %xmm1
divsd %xmm4, %xmm0
addsd %xmm3, %xmm0
divsd %xmm0, %xmm2
subsd %xmm1, %xmm2
addsd -0x8(%rcx,%rax,8), %xmm2
movsd %xmm2, -0x8(%rcx,%rax,8)
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/FR13ndSDP[P]NHT/Parameters.cpp
// Function: Parameters::getSource(std::vector<double, std::allocator<double>>&, std::vector<double, std::allocator<double>>&)
void Parameters::getSource(Vec &Su, Vec &T)
{
    double dx = L/N;
    for (int i=1; i<N-1; i++)
    {
        Su[i] = uS*RHOC*dx/dt*T[i];
    }
    // left boundary
    if (B_L == 1)
    {

        Su[0] = uS*RHOC*dx/dt*T[0] + 2*K/dx*TA;
    }
    else if (B_L == 2)
        Su[0] = uS*RHOC*dx/dt*T[0] - Q_L;
    else
        Su[0] = uS*RHOC*dx/dt*T[0] + TA/(1/A1+dx/(2*K));
    // right boundary
    if (B_R == 1)
        Su[N-1] = uS*RHOC*dx/dt*T[N-1] + 2*K/dx*TB;
    else if (B_R == 2)
        Su[N-1] = uS*RHOC*dx/dt*T[N-1] - Q_R;
    else
        Su[N-1] = uS*RHOC*dx/dt*T[N-1] + TB/(1/A2+dx/(2*K));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq (%rdi), %rax
cvtsi2sd %eax, %xmm1
movsd 0x18(%rdi), %xmm0
divsd %xmm1, %xmm0
cvtsi2sdl 0x4(%rdi), %xmm1
leaq -0x1(%rax), %r8
movq (%rdx), %rdx
movq (%rsi), %rcx
movabsq $0x1, %rsi
cmpq %r8, %rsi
jge 0x38b7
movsd 0x30(%rdi), %xmm2
mulsd %xmm1, %xmm2
mulsd %xmm0, %xmm2
divsd 0x10(%rdi), %xmm2
mulsd (%rdx,%rsi,8), %xmm2
movsd %xmm2, (%rcx,%rsi,8)
incq %rsi
jmp 0x3891
movl 0x8(%rdi), %esi
movsd 0x30(%rdi), %xmm2
mulsd %xmm1, %xmm2
mulsd %xmm0, %xmm2
divsd 0x10(%rdi), %xmm2
movsd (%rdx), %xmm3
cmpl $0x1, %esi
je 0x38e9
cmpl $0x2, %esi
jne 0x38fd
movsd 0x60(%rdi), %xmm4
xorpd 0x1729(%rip), %xmm4     # 0x5010
jmp 0x3928
movsd 0x38(%rdi), %xmm4
addsd %xmm4, %xmm4
divsd %xmm0, %xmm4
mulsd 0x40(%rdi), %xmm4
jmp 0x3928
movsd 0x38(%rdi), %xmm5
movsd 0x40(%rdi), %xmm4
movsd 0x1719(%rip), %xmm6     # 0x5028
divsd 0x20(%rdi), %xmm6
addsd %xmm5, %xmm5
movapd %xmm0, %xmm7
divsd %xmm5, %xmm7
addsd %xmm6, %xmm7
divsd %xmm7, %xmm4
mulsd %xmm3, %xmm2
addsd %xmm4, %xmm2
movsd %xmm2, (%rcx)
movl 0xc(%rdi), %esi
movsd 0x30(%rdi), %xmm4
movsd 0x10(%rdi), %xmm3
movsd -0x8(%rdx,%rax,8), %xmm2
cmpl $0x2, %esi
je 0x3965
cmpl $0x1, %esi
jne 0x3974
movsd 0x38(%rdi), %xmm5
addsd %xmm5, %xmm5
divsd %xmm0, %xmm5
mulsd 0x48(%rdi), %xmm5
jmp 0x39a3
movsd 0x58(%rdi), %xmm5
xorpd 0x169e(%rip), %xmm5     # 0x5010
jmp 0x39a3
movsd 0x38(%rdi), %xmm6
movsd 0x48(%rdi), %xmm5
movsd 0x16a2(%rip), %xmm7     # 0x5028
divsd 0x28(%rdi), %xmm7
addsd %xmm6, %xmm6
movapd %xmm0, %xmm8
divsd %xmm6, %xmm8
addsd %xmm7, %xmm8
divsd %xmm8, %xmm5
mulsd %xmm1, %xmm4
mulsd %xmm4, %xmm0
divsd %xmm3, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm5, %xmm0
movsd %xmm0, -0x8(%rcx,%rax,8)
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/FR13ndSDP[P]NHT/Solver.cpp
// Function: maxabs(std::vector<double, std::allocator<double>>)
double maxabs(Vec v)
{
    double min = *min_element(v.begin(),v.end());
    double max = *max_element(v.begin(),v.end()); 
    if (abs(max) > abs(min))
        return abs(max);
    else
        return abs(min);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq (%rdi), %rdi
movq 0x8(%rbx), %rsi
callq 0x4359
movq (%rbx), %rdi
movq 0x8(%rbx), %rsi
movsd (%rax), %xmm0
movaps %xmm0, -0x20(%rbp)
callq 0x4389
movsd (%rax), %xmm0
movapd 0x16ec(%rip), %xmm1     # 0x51c0
andpd %xmm1, %xmm0
movapd -0x20(%rbp), %xmm2
andpd %xmm1, %xmm2
maxsd %xmm2, %xmm0
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/FR13ndSDP[P]NHT/Solver.cpp
// Function: TDMA(std::vector<double, std::allocator<double>>, std::vector<double, std::allocator<double>>, std::vector<double, std::allocator<double>>, std::vector<double, std::allocator<double>>)
Vec TDMA(Vec aW, Vec aP, Vec aE, Vec Su)
{
    int size = Su.size();
    Vec P(size, 0), Q(size, 0), phi(size,0);
    P[0] = aE[0] / aP[0];
    Q[0] = Su[0] / aP[0];
    for (int i = 1; i < size; i++)
    {
        P[i] = aE[i]/(aP[i] - aW[i]*P[i-1]);
        Q[i] = (Su[i]+aW[i]*Q[i-1])/(aP[i] - aW[i]*P[i-1]);
    }
    phi[size-1] = Q[size-1];
    for (int i = size-1; i>0 ; i--)
    {
        phi[i-1] = P[i-1]*phi[i]+Q[i-1];
    }
    return phi;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r8, %r12
movq %rcx, -0x40(%rbp)
movq %rdx, -0x48(%rbp)
movq %rsi, %r14
movq %rdi, -0x50(%rbp)
movq 0x8(%r8), %rbx
subq (%r8), %rbx
shrq $0x3, %rbx
movslq %ebx, %r15
leaq -0x68(%rbp), %rdx
andq $0x0, (%rdx)
leaq -0x80(%rbp), %rdi
leaq -0x38(%rbp), %r13
movq %r15, %rsi
movq %r13, %rcx
callq 0x2d7e
andq $0x0, (%r13)
leaq -0x68(%rbp), %rdi
leaq -0x38(%rbp), %rdx
leaq -0x29(%rbp), %rcx
movq %r15, %rsi
callq 0x2d7e
leaq -0x38(%rbp), %rdx
andq $0x0, (%rdx)
leaq -0x29(%rbp), %rcx
movq -0x50(%rbp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x2d7e
movq -0x40(%rbp), %rax
movq (%rax), %rdx
movsd (%rdx), %xmm0
movq -0x48(%rbp), %rax
movq (%rax), %rsi
divsd (%rsi), %xmm0
movq -0x80(%rbp), %rax
movsd %xmm0, (%rax)
movq (%r12), %rdi
movsd (%rdi), %xmm0
divsd (%rsi), %xmm0
movq -0x68(%rbp), %rcx
movsd %xmm0, (%rcx)
movslq %ebx, %r8
pushq $0x1
popq %r9
cmpq %r8, %r9
jge 0x3c0c
movsd (%rdx,%r9,8), %xmm0
movsd (%rsi,%r9,8), %xmm1
movq (%r14), %r10
movsd -0x8(%rax,%r9,8), %xmm2
movsd (%r10,%r9,8), %xmm3
mulsd %xmm2, %xmm3
subsd %xmm3, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, (%rax,%r9,8)
movsd (%r10,%r9,8), %xmm0
movsd -0x8(%rcx,%r9,8), %xmm1
mulsd %xmm0, %xmm1
addsd (%rdi,%r9,8), %xmm1
movsd (%rsi,%r9,8), %xmm3
mulsd %xmm2, %xmm0
subsd %xmm0, %xmm3
divsd %xmm3, %xmm1
movsd %xmm1, (%rcx,%r9,8)
incq %r9
jmp 0x3ba5
leal -0x1(%r15), %edx
movsd -0x8(%rcx,%r15,8), %xmm0
movq (%r13), %rsi
movsd %xmm0, -0x8(%rsi,%r15,8)
testl %edx, %edx
jle 0x3c42
movsd -0x8(%rax,%rdx,8), %xmm0
mulsd (%rsi,%rdx,8), %xmm0
addsd -0x8(%rcx,%rdx,8), %xmm0
movsd %xmm0, -0x8(%rsi,%rdx,8)
decq %rdx
jmp 0x3c22
leaq -0x68(%rbp), %rdi
callq 0x2e7e
leaq -0x80(%rbp), %rdi
callq 0x2e7e
movq %r13, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
callq 0x2e7e
jmp 0x3c77
movq %rax, %rbx
leaq -0x80(%rbp), %rdi
callq 0x2e7e
movq %rbx, %rdi
callq 0x2290
// File: /workspace/github_cpp_makefile_star2_O2/fanyazhi[P]Spline-Fitting/src/CRSmatrix.cpp
// Function: CRSmatrix::CRSmatrix(std::vector<double, std::allocator<double>>, std::vector<int, std::allocator<int>>, std::vector<int, std::allocator<int>>)
CRSmatrix::CRSmatrix(std::vector<double> v, std::vector<int> r, std::vector<int> c) {
    value = v;
    rowPtr = r;
    colInd = c;

    //find total number of rows
    rowNum = rowPtr.size() - 1;

    //find total number of columns
    colNum = 0;
    for (unsigned int i = 0; i < colInd.size(); i++) {
        if (colInd[i] > colNum) {
            colNum = colInd[i];
        }
    }
    colNum++;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r13
movq %rdx, %rbp
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
leaq 0x20(%rdi), %r15
leaq 0x38(%rdi), %r12
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%rdi)
movups %xmm0, 0x28(%rdi)
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x8(%rdi)
andq $0x0, 0x48(%rdi)
movq %r14, %rdi
callq 0x310a
movq %r15, %rdi
movq %rbp, %rsi
callq 0x31d4
movq %r12, %rdi
movq %r13, %rsi
callq 0x31d4
movq 0x28(%rbx), %rcx
subq 0x20(%rbx), %rcx
movq 0x38(%rbx), %rax
shrq $0x2, %rcx
decl %ecx
movl %ecx, (%rbx)
andl $0x0, 0x4(%rbx)
movq 0x40(%rbx), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
xorl %edx, %edx
xorl %esi, %esi
movl %esi, %esi
cmpq %rsi, %rcx
jbe 0x2480
movl (%rax,%rsi,4), %edi
cmpl %edx, %edi
jle 0x247c
movl %edi, 0x4(%rbx)
movl %edi, %edx
incl %esi
jmp 0x2469
incl %edx
movl %edx, 0x4(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %r12, %rdi
callq 0x35f2
movq %r15, %rdi
callq 0x35f2
movq %r14, %rdi
callq 0x3692
movq %rbx, %rdi
callq 0x2220
nop
// File: /workspace/github_cpp_makefile_star2_O2/fanyazhi[P]Spline-Fitting/src/CRSmatrix.cpp
// Function: CRSmatrix::retrieveElement(unsigned int, unsigned int)
double CRSmatrix::retrieveElement(unsigned int i, unsigned int j) {
    int pos = rowPtr[i];
    bool found = 0;
    for (int n = rowPtr[i]; n < rowPtr[i] + (rowPtr[i + 1] - rowPtr[i]); n++) {
        if (colInd[n] == j) {
            pos = n;
            found = 1;
        }
    }
    if (found) return value[pos];
    return 0.0;
}

// Assembly:
movl %esi, %ecx
movq 0x20(%rdi), %r8
movq 0x38(%rdi), %rax
movl (%r8,%rcx,4), %ecx
incl %esi
movslq (%r8,%rsi,4), %r9
movslq %ecx, %r10
xorl %r8d, %r8d
movl %ecx, %esi
cmpq %r9, %r10
jge 0x2850
cmpl %edx, (%rax,%r10,4)
cmovel %ecx, %esi
sete %r11b
orb %r11b, %r8b
incq %r10
incl %ecx
jmp 0x2836
xorps %xmm0, %xmm0
testb $0x1, %r8b
je 0x2865
movslq %esi, %rax
movq 0x8(%rdi), %rcx
movsd (%rcx,%rax,8), %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O2/fanyazhi[P]Spline-Fitting/src/CRSmatrix.cpp
// Function: CRSmatrix::changeValue(double, unsigned int, unsigned int)
void CRSmatrix::changeValue(double x, unsigned int i, unsigned int j) {
    if (value.empty()) {
        value.push_back(x);
        colInd.push_back(j);
        rowPtr.push_back(0);
        rowPtr.push_back(1);
    } else {
        value.push_back(x);
        colInd.push_back(j);
        if (rowPtr.size() <= i + 1)
            rowPtr.push_back(value.size());
        else
            rowPtr[rowPtr.size() - 1] = rowPtr[rowPtr.size() - 1] + 1;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %r14
leaq 0x10(%rsp), %rsi
movsd %xmm0, (%rsi)
addq $0x8, %rdi
movq 0x8(%r14), %r12
movq 0x10(%r14), %r13
callq 0x32da
leaq 0x38(%r14), %rdi
leaq 0x20(%r14), %rbx
cmpq %r13, %r12
je 0x28cf
leaq 0xc(%rsp), %rsi
movl %ebp, (%rsi)
callq 0x3a0c
movq 0x20(%r14), %rax
movq 0x28(%r14), %rcx
subq %rax, %rcx
movq %rcx, %rdx
sarq $0x2, %rdx
incl %r15d
cmpq %r15, %rdx
jbe 0x2901
incl -0x4(%rax,%rcx)
jmp 0x291c
leaq 0xc(%rsp), %r14
movl %ebp, (%r14)
movq %r14, %rsi
callq 0x3a0c
andl $0x0, (%r14)
leaq 0xc(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3a0c
movl $0x1, (%r14)
leaq 0xc(%rsp), %rsi
jmp 0x2914
movq 0x10(%r14), %rax
subq 0x8(%r14), %rax
shrq $0x3, %rax
leaq 0xc(%rsp), %rsi
movl %eax, (%rsi)
movq %rbx, %rdi
callq 0x3a0c
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/fanyazhi[P]Spline-Fitting/src/CRSmatrix.cpp
// Function: CRSmatrix::productAx(std::vector<double, std::allocator<double>>)
std::vector<double> CRSmatrix::productAx(std::vector<double> x) {
    std::vector<double> product(x.size());
    for (int i = 0; i < rowNum; i++) {
        for (int j = 0; j < colNum; j++) {
            product[i] += x[j] * retrieveElement(i, j);
        }
    }
    return product;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq 0x8(%rdx), %rsi
subq (%rdx), %rsi
sarq $0x3, %rsi
leaq 0xf(%rsp), %rdx
movq %rdi, 0x10(%rsp)
callq 0x3336
movl 0x4(%r15), %ebp
xorl %r12d, %r12d
testl %ebp, %ebp
cmovlel %r12d, %ebp
movl (%r15), %eax
testl %eax, %eax
cmovlel %r12d, %eax
movq %rax, 0x18(%rsp)
cmpq 0x18(%rsp), %r12
je 0x29c5
movq 0x10(%rsp), %rax
movq (%rax), %r14
xorl %r13d, %r13d
cmpq %r13, %rbp
je 0x29c0
movq (%rbx), %rax
movsd (%rax,%r13,8), %xmm0
movsd %xmm0, 0x20(%rsp)
movq %r15, %rdi
movl %r12d, %esi
movl %r13d, %edx
callq 0x281a
mulsd 0x20(%rsp), %xmm0
addsd (%r14,%r12,8), %xmm0
movsd %xmm0, (%r14,%r12,8)
incq %r13
jmp 0x2987
incq %r12
jmp 0x2975
movq 0x10(%rsp), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/fanyazhi[P]Spline-Fitting/src/CRSmatrix.cpp
// Function: CRSmatrix::deleteValue(unsigned int, unsigned int)
void CRSmatrix::deleteValue(unsigned int i, unsigned int j) {
    for (int n = rowPtr[i]; n < rowPtr[i] + (rowPtr[i + 1] - rowPtr[i]); n++) {
        if (colInd[n] == j) {
            value.erase(value.begin() + n);
            colInd.erase(colInd.begin() + n);
            for (unsigned int m = i + 1; m < rowPtr.size(); m++) rowPtr[m]--;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %esi, %r14d
movq %rdi, %r15
movl %esi, %ecx
movq 0x20(%rdi), %rax
movslq (%rax,%rcx,4), %rbp
incl %r14d
leaq 0x38(%rdi), %r12
leaq 0x8(%rdi), %r13
movslq (%rax,%r14,4), %rcx
cmpq %rcx, %rbp
jge 0x2a61
movq (%r12), %rcx
cmpl %ebx, (%rcx,%rbp,4)
jne 0x2a5c
leaq (,%rbp,8), %rsi
addq 0x8(%r15), %rsi
movq %r13, %rdi
callq 0x3388
leaq (,%rbp,4), %rsi
addq 0x38(%r15), %rsi
movq %r12, %rdi
callq 0x33c2
movq 0x20(%r15), %rax
movq 0x28(%r15), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
movl %r14d, %edx
movl %edx, %edx
cmpq %rdx, %rcx
jbe 0x2a5c
decl (%rax,%rdx,4)
incl %edx
jmp 0x2a4e
incq %rbp
jmp 0x2a02
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/fanyazhi[P]Spline-Fitting/src/CRSmatrix.cpp
// Function: CRSmatrix::printA()
void CRSmatrix::printA() {
    for (int valI = 0; valI < rowNum; valI++) {
        for (int valJ = 0; valJ < colNum; valJ++) {
            std::cout << " " << retrieveElement(valI, valJ);
        }
        std::cout << std::endl;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %ebp, %ebp
movq 0x5549(%rip), %r14      # 0x7fd0
leaq 0x26e2(%rip), %r15      # 0x5170
cmpl (%rbx), %ebp
jge 0x2acf
xorl %r12d, %r12d
cmpl 0x4(%rbx), %r12d
jge 0x2ac3
movq %r14, %rdi
movq %r15, %rsi
callq 0x2140
movq %rax, %r13
movq %rbx, %rdi
movl %ebp, %esi
movl %r12d, %edx
callq 0x281a
movq %r13, %rdi
callq 0x2200
incl %r12d
jmp 0x2a95
movq %r14, %rdi
callq 0x20b0
incl %ebp
jmp 0x2a8e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/fanyazhi[P]Spline-Fitting/src/CRSmatrix.cpp
// Function: vectorNorm(std::vector<double, std::allocator<double>>)
double vectorNorm(std::vector<double> x) {
    double sum = 0.0;
    for (unsigned int i = 0; i < x.size(); i++) {
        sum += pow(x[i], 2);
    }
    return sqrt(sum);
}

// Assembly:
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
xorl %edx, %edx
xorpd %xmm0, %xmm0
movl %edx, %edx
cmpq %rdx, %rcx
jbe 0x2b0a
movsd (%rax,%rdx,8), %xmm1
mulsd %xmm1, %xmm1
addsd %xmm1, %xmm0
incl %edx
jmp 0x2af2
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x2100
sqrtsd %xmm0, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O2/fanyazhi[P]Spline-Fitting/src/cubicSpline.cpp
// Function: constructVariables(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
vector<double> constructVariables(string address) {
    //initiate vector x to store all elements in file
    vector<double> x;

    ifstream inValue;
    inValue.open(address);

    //check if file is open, if not exit code
    if (!inValue.is_open()) {
        cout << "error: file did not open" << endl;
        exit(1);
    }

    // Declare a variable to load the contents from the file
    string line = "";

    // Loading the value vector
    while (inValue >> line) {
        double value = stod(line);
        x.push_back(value);
    }

    return x;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x238, %rsp            # imm = 0x238
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
leaq 0x30(%rsp), %rdi
callq 0x2180
leaq 0x30(%rsp), %rdi
pushq $0x8
popq %rdx
movq %r14, %rsi
callq 0x2120
leaq 0xa8(%rsp), %rdi
callq 0x2040
testb %al, %al
je 0x4600
leaq 0xcf5(%rip), %rsi       # 0x527b
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x329e
leaq 0x30(%rsp), %r14
leaq 0x10(%rsp), %r15
leaq 0x8(%rsp), %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0x21b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x45da
movq %r15, %rdi
xorl %esi, %esi
callq 0x4658
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x32da
jmp 0x45a4
leaq 0x10(%rsp), %rdi
callq 0x20a0
leaq 0x30(%rsp), %rdi
callq 0x2050
movq %rbx, %rax
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x39c9(%rip), %rdi      # 0x7fd0
leaq 0xb12(%rip), %rsi       # 0x5120
callq 0x2140
movq %rax, %rdi
callq 0x20b0
pushq $0x1
popq %rdi
callq 0x2190
jmp 0x462a
movq %rax, %r14
jmp 0x4648
movq %rax, %r14
jmp 0x463e
jmp 0x4631
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x20a0
leaq 0x30(%rsp), %rdi
callq 0x2050
movq %rbx, %rdi
callq 0x3692
movq %r14, %rdi
callq 0x2220
// File: /workspace/github_cpp_makefile_star2_O2/oknenavin[P]cxon/test/src/json/json.node-main.cxx
// Function: void test::kind::time<void (*)(test::test&)>(std::vector<test::test, std::allocator<test::test>>&, void (*)(test::test&))
void time(cases& cases, TIME_CXON time_cxon) {
            struct {
                std::vector<std::string> name;
                std::vector<void(*)(test&)> func;
            }   cnts;
                cnts.name.push_back(time_cxon == &time_cxon_node ? "# cxon/node" : "# cxon/native");
                cnts.func.push_back(time_cxon);
#           ifdef CXON_TIME_BOOST_JSON
                cnts.name.push_back("Boost/JSON");
                cnts.func.push_back(&time_boostjson);
#           endif
#           ifdef CXON_TIME_RAPIDJSON
                cnts.name.push_back("RapidJSON");
                cnts.func.push_back(&time_rapidjson);
#           endif
#           ifdef CXON_TIME_NLOHMANN
                cnts.name.push_back("nlohmann/JSON");
                cnts.func.push_back(&time_nlohmannjson);
#           endif
            {   // time
                auto time_node = cases;
                for (auto& test: time_node)
                    for (auto& func: cnts.func)
                        func(test);
                time_print(cnts.name, time_node);
            }
        }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
movq %rsi, 0x28(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
cmpq 0xfc91c(%rip), %rsi     # 0x13cfc8
leaq 0x7c3c8(%rip), %rax     # 0xbca7b
leaq 0x7c3cd(%rip), %rsi     # 0xbca87
cmoveq %rax, %rsi
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0xe100
leaq 0x30(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x46404
leaq 0x8(%rsp), %rdi
callq 0xe150
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x4375e
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x4377c
movq 0x8(%rsp), %rbx
movq 0x10(%rsp), %r14
cmpq %r14, %rbx
je 0x40732
movq 0x48(%rsp), %r15
movq 0x50(%rsp), %r12
cmpq %r12, %r15
je 0x4072c
movq %rbx, %rdi
callq *(%r15)
addq $0x8, %r15
jmp 0x4071b
subq $-0x80, %rbx
jmp 0x4070c
leaq 0x30(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x3f832
leaq 0x8(%rsp), %rdi
callq 0x40f3c
leaq 0x30(%rsp), %rdi
callq 0x437d0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x4077b
jmp 0x40776
jmp 0x40776
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0xe150
jmp 0x40788
movq %rax, %rbx
jmp 0x40788
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x40f3c
leaq 0x30(%rsp), %rdi
callq 0x437d0
movq %rbx, %rdi
callq 0xe470