LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/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 0x4661(%rip), %rdi      # 0x8664
callq 0x4aa8
movl 0x4656(%rip), %edx      # 0x8664
leal -0x1(%rdx), %eax
cmpl $0x6, %eax
ja 0x4039
movl 0x4680(%rip), %edx      # 0x869c
xorl %eax, %eax
testl %edx, %edx
setne %al
movl 0x4643(%rip), %esi      # 0x866c
leaq 0x4690(%rip), %rcx      # 0x86c0
cmpl %eax, (%rcx,%rsi,4)
jle 0x407c
xorl %eax, %eax
jmp 0x4088
andl $-0x2, %edx
movl 0x465a(%rip), %ecx      # 0x869c
xorl %eax, %eax
testl %ecx, %ecx
setne %al
cmpl $0x8, %edx
jne 0x40a3
movl 0x4618(%rip), %esi      # 0x866c
leaq 0x4665(%rip), %rdx      # 0x86c0
cmpl %eax, (%rdx,%rsi,4)
setle %al
cmpl $0x1, %ecx
movl $0x3, %ecx
sbbl $-0x1, %ecx
movl 0x45f6(%rip), %esi      # 0x8668
cmpl (%rdx,%rsi,4), %ecx
jle 0x40b6
movl %ecx, (%rdx,%rsi,4)
jmp 0x40b6
movl 0x45ee(%rip), %esi      # 0x8670
cmpl %eax, (%rcx,%rsi,4)
setle %al
cmpl $0x1, %edx
movl $0x3, %edx
sbbl $-0x1, %edx
movl 0x45cf(%rip), %esi      # 0x8668
cmpl (%rcx,%rsi,4), %edx
jle 0x40b6
movl %edx, (%rcx,%rsi,4)
jmp 0x40b6
movl 0x45bf(%rip), %ecx      # 0x8668
leaq 0x4610(%rip), %rdx      # 0x86c0
cmpl %eax, (%rdx,%rcx,4)
setle %al
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2100
movq %rax, %rbx
movl %ebp, %eax
leaq 0xe7d(%rip), %rcx       # 0x5158
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x43a8
jmp 0x4339
movq %rbx, %rdi
movl $0x4, %esi
movq %r14, %rdx
callq 0x48a8
jmp 0x4339
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %rdx
callq 0x4634
jmp 0x4339
movq %rbx, %rdi
movl $0x3, %esi
movq %r14, %rdx
callq 0x47bc
jmp 0x4339
movq %rbx, %rdi
movl $0x1, %esi
movq %r14, %rdx
callq 0x44d4
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x4349
jmp 0x4349
jmp 0x4349
jmp 0x4349
movq %rax, %r14
movl $0x80, %esi
movq %rbx, %rdi
callq 0x2110
movq %r14, %rdi
callq 0x2180
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x42f2(%rip), %r14      # 0x86e8
callq *(%r14)
leal 0x3(%rax), %ebp
testl %eax, %eax
cmovnsl %eax, %ebp
sarl $0x2, %ebp
leaq 0x42ed(%rip), %rax      # 0x86f8
callq *(%rax)
cmpl %eax, %ebp
jge 0x4463
leaq 0x4(%rsp), %rdi
callq 0x49a6
leaq 0x42ee(%rip), %rax      # 0x8710
callq *(%rax)
leaq 0x4(%rsp), %rdi
movq %rax, %rsi
callq 0x4aa8
movq 0x78(%rbx), %rdi
leaq 0x4(%rsp), %rsi
callq 0x4380
leaq 0x430a(%rip), %rax      # 0x8750
movl $0x1, %edi
callq *(%rax)
leaq 0x429c(%rip), %rax      # 0x86f0
movq (%rax), %rbx
callq *(%r14)
addl $0x4, %eax
movl %eax, %edi
callq *%rbx
jmp 0x448a
leaq 0x4(%rsp), %r14
movq %r14, %rdi
callq 0x49a6
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x4aa8
movq 0x78(%rbx), %rdi
leaq 0x4(%rsp), %rsi
callq 0x4380
leaq 0x4(%rsp), %rdi
callq 0x4b2a
addq $0x60, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x449f
movq %rax, %rbx
leaq 0x4(%rsp), %rdi
callq 0x4b2a
movq %rbx, %rdi
callq 0x2180
// File: /workspace/github_cpp_makefile_star2_O1/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 0x41db(%rip), %rax      # 0x8700
leaq 0x8(%rdi), %r14
movq %r14, %rdi
callq *(%rax)
movq %rbx, %rdi
testb %al, %al
je 0x453c
callq 0x4362
jmp 0x4541
callq 0x4370
cmpb $0x1, 0x64(%rbx)
jne 0x4552
leaq 0x4202(%rip), %rax      # 0x8750
xorl %edi, %edi
callq *(%rax)
leaq 0x4(%rsp), %r15
movq %r15, %rdi
callq 0x49a6
movq %r15, %rdi
movq %r14, %rsi
callq 0x4aa8
movl 0x4(%rsp), %eax
testl %eax, %eax
je 0x45cb
cmpb $0x0, 0x64(%rbx)
jne 0x45cb
cmpl $0x7, %eax
ja 0x4591
leaq 0x419c(%rip), %rax      # 0x8720
movl 0xc(%rsp), %edi
callq *(%rax)
leaq 0x10(%rsp), %rcx
jmp 0x45b5
andl $-0x2, %eax
cmpl $0x8, %eax
je 0x45a3
cmpl $0xc, %eax
je 0x45ed
cmpl $0xa, %eax
jne 0x45cb
leaq 0x4176(%rip), %rax      # 0x8720
movl 0xc(%rsp), %edi
callq *(%rax)
leaq 0x8(%rsp), %rcx
movl %eax, 0x1c(%rsp)
leaq 0x4160(%rip), %rax      # 0x8720
movl (%rcx), %edi
callq *(%rax)
leaq 0x20(%rsp), %rcx
movl %eax, (%rcx)
movq 0x78(%rbx), %rdi
leaq 0x4(%rsp), %rsi
callq 0x4380
leaq 0x4(%rsp), %rdi
callq 0x4b2a
addq $0x60, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x412c(%rip), %rax      # 0x8720
movl 0x8(%rsp), %edi
callq *(%rax)
leaq 0x1c(%rsp), %rcx
jmp 0x45c9
movq %rax, %rbx
leaq 0x4(%rsp), %rdi
callq 0x4b2a
movq %rbx, %rdi
callq 0x2180
// File: /workspace/github_cpp_makefile_star2_O1/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 0x49a6
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x4aa8
movl 0xc(%rsp), %eax
testl %eax, %eax
je 0x473e
cmpb $0x0, 0x64(%rbx)
jne 0x473e
decl %eax
cmpl $0xc, %eax
ja 0x473e
leaq 0xb87(%rip), %rcx       # 0x5244
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0x1c(%rsp), %eax
jmp 0x4736
leaq 0x4015(%rip), %rax      # 0x86e8
callq *(%rax)
movl 0x1c(%rsp), %ecx
leal (%rax,%rcx,4), %eax
movl %eax, 0x2c(%rsp)
cmpl $0x0, 0x24(%rsp)
sete 0x40(%rsp)
jmp 0x473e
movl 0x28(%rsp), %eax
xorl 0x24(%rsp), %eax
jmp 0x473a
leaq 0x3feb(%rip), %rax      # 0x86e8
callq *(%rax)
movl 0x1c(%rsp), %ecx
leal (%rax,%rcx,4), %eax
movl %eax, 0x2c(%rsp)
cmpl $0x0, 0x24(%rsp)
setne 0x40(%rsp)
jmp 0x473e
movl 0x28(%rsp), %eax
imull 0x24(%rsp), %eax
jmp 0x473a
movl 0x28(%rsp), %ecx
testl %ecx, %ecx
je 0x473e
movl 0x24(%rsp), %eax
cltd
idivl %ecx
jmp 0x473a
movl 0x28(%rsp), %eax
addl 0x24(%rsp), %eax
movl %eax, 0x2c(%rsp)
movq 0x78(%rbx), %rdi
leaq 0xc(%rsp), %rsi
callq 0x4380
leaq 0xc(%rsp), %rdi
callq 0x4b2a
addq $0x68, %rsp
popq %rbx
popq %r14
retq
movl 0x24(%rsp), %eax
subl 0x28(%rsp), %eax
jmp 0x473a
movl 0x28(%rsp), %eax
andl 0x24(%rsp), %eax
jmp 0x473a
movl 0x28(%rsp), %eax
orl 0x24(%rsp), %eax
jmp 0x473a
movl 0x24(%rsp), %eax
subl 0x1c(%rsp), %eax
jmp 0x473a
movq %rax, %rbx
leaq 0xc(%rsp), %rdi
callq 0x4b2a
movq %rbx, %rdi
callq 0x2180
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x49a6
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x4aa8
movl 0xc(%rsp), %eax
testl %eax, %eax
je 0x4855
cmpb $0x0, 0x64(%rbx)
jne 0x4855
andl $-0x2, %eax
cmpl $0xc, %eax
jne 0x4855
cmpb $0x1, 0x40(%rsp)
jne 0x4847
leaq 0x3eaf(%rip), %rax      # 0x86f0
movl 0x2c(%rsp), %edi
callq *(%rax)
leaq 0x3f02(%rip), %rax      # 0x8750
movl $0x2, %edi
callq *(%rax)
movq 0x78(%rbx), %rdi
leaq 0xc(%rsp), %rsi
callq 0x4380
leaq 0xc(%rsp), %rdi
callq 0x4b2a
addq $0x68, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0xc(%rsp), %rdi
callq 0x4b2a
movq %rbx, %rdi
callq 0x2180
// File: /workspace/github_cpp_makefile_star2_O1/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 0x49a6
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x4aa8
cmpl $0x0, 0xc(%rsp)
je 0x4935
cmpb $0x0, 0x64(%rbx)
jne 0x4935
leaq 0x3e0b(%rip), %rax      # 0x8728
movl 0x10(%rsp), %edi
movl 0x2c(%rsp), %esi
callq *(%rax)
leaq 0x3e22(%rip), %rax      # 0x8750
movl $0x2, %edi
callq *(%rax)
leaq 0xc(%rsp), %rdi
callq 0x4b2a
addq $0x68, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0xc(%rsp), %rdi
callq 0x4b2a
movq %rbx, %rdi
callq 0x2180
// File: /workspace/github_cpp_makefile_star2_O1/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
movq 0x10(%rsi), %rax
movups %xmm0, (%rdi)
movq %rax, 0x10(%rdi)
movl $0x0, 0x38(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x25(%rdi)
movl 0x18(%rsi), %eax
movl %eax, 0x18(%rdi)
movl 0x1c(%rsi), %eax
movl %eax, 0x1c(%rdi)
movb 0x34(%rsi), %al
movb %al, 0x34(%rdi)
movl 0x38(%rsi), %eax
movl %eax, 0x38(%rdi)
movl 0x20(%rsi), %eax
movl %eax, 0x20(%rdi)
movl 0x24(%rsi), %eax
movl %eax, 0x24(%rdi)
movl 0x28(%rsi), %eax
movl %eax, 0x28(%rdi)
movl 0x2c(%rsi), %eax
movl %eax, 0x2c(%rdi)
movl 0x30(%rsi), %eax
movl %eax, 0x30(%rdi)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x4b06
movups (%rsi), %xmm0
movq 0x10(%rsi), %rcx
movups %xmm0, (%rax)
movq %rcx, 0x10(%rax)
movl $0x0, 0x38(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rax)
movups %xmm0, 0x25(%rax)
movl 0x18(%rsi), %ecx
movl %ecx, 0x18(%rax)
movl 0x1c(%rsi), %ecx
movl %ecx, 0x1c(%rax)
movb 0x34(%rsi), %cl
movb %cl, 0x34(%rax)
movl 0x38(%rsi), %ecx
movl %ecx, 0x38(%rax)
movl 0x20(%rsi), %ecx
movl %ecx, 0x20(%rax)
movl 0x24(%rsi), %ecx
movl %ecx, 0x24(%rax)
movl 0x28(%rsi), %ecx
movl %ecx, 0x28(%rax)
movl 0x2c(%rsi), %ecx
movl %ecx, 0x2c(%rax)
movl 0x30(%rsi), %ecx
movl %ecx, 0x30(%rax)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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:
testl %edi, %edi
jle 0x24c6
pushq %rbp
movq %rsp, %rbp
leal (%rdi,%rdi), %eax
cvtsi2sd %eax, %xmm6
movapd %xmm0, %xmm5
divsd %xmm6, %xmm5
xorps %xmm6, %xmm6
cvtsi2sd %edi, %xmm6
divsd %xmm6, %xmm0
movq (%rdx), %rax
subsd %xmm1, %xmm2
xorpd 0x2b83(%rip), %xmm2     # 0x5010
mulsd %xmm3, %xmm2
divsd %xmm4, %xmm2
movq (%rsi), %rcx
movl %edi, %edx
xorl %esi, %esi
xorps %xmm3, %xmm3
cvtsi2sd %esi, %xmm3
mulsd %xmm0, %xmm3
addsd %xmm5, %xmm3
movsd %xmm3, (%rax,%rsi,8)
mulsd %xmm2, %xmm3
addsd %xmm1, %xmm3
movsd %xmm3, (%rcx,%rsi,8)
incq %rsi
cmpq %rsi, %rdx
jne 0x249c
popq %rbp
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x68(%rdi), %rbx
leaq 0x78(%rdi), %r15
movq %r15, 0x68(%rdi)
movq $0x0, 0x70(%rdi)
movb $0x0, 0x78(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x58(%rdi)
movabsq $0x3fd3333333333333, %rax # imm = 0x3FD3333333333333
movq %rax, 0x18(%rdi)
movaps 0x1c3f(%rip), %xmm0     # 0x5130
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 0x1be3(%rip), %rcx      # 0x5140
movl $0x4, %r8d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2220
movabsq $0x3eb0c6f7a0b5ed8d, %rax # imm = 0x3EB0C6F7A0B5ED8D
movq %rax, 0x50(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x359e
movq (%r15), %rsi
incq %rsi
callq 0x21c0
movq %r14, %rdi
callq 0x2280
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2260
leaq 0x151f(%rip), %rsi      # 0x51bb
movq %r15, %rdi
movl $0x10, %edx
callq 0x2040
movq (%r14), %rax
cmpq %rax, 0x8(%r14)
je 0x3d36
xorl %r15d, %r15d
leaq 0x14f9(%rip), %r12      # 0x51b9
movsd (%rax,%r15,8), %xmm0
leaq -0x228(%rbp), %rdi
callq 0x2230
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x21d0
movq (%rbx), %rax
movsd (%rax,%r15,8), %xmm0
movq %r13, %rdi
callq 0x2230
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x21a0
movsbl %al, %esi
movq %r13, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2110
incq %r15
movq (%r14), %rax
movq 0x8(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r15, %rcx
ja 0x3cc0
leaq -0x228(%rbp), %rdi
callq 0x21f0
movq 0x326f(%rip), %rax      # 0x6fb8
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq -0x220(%rbp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, -0x228(%rbp,%rcx)
callq 0x2180
leaq -0x130(%rbp), %rdi
callq 0x2090
xorl %eax, %eax
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3d8e
movq %rax, %rbx
leaq -0x228(%rbp), %rdi
callq 0x2200
movq %rbx, %rdi
callq 0x2280
nop
// File: /workspace/github_cpp_makefile_star2_O1/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
movsd 0x18(%rdi), %xmm0
movslq (%rdi), %rax
cvtsi2sd %eax, %xmm1
divsd %xmm1, %xmm0
testq %rax, %rax
jle 0x3e12
movq (%rsi), %r8
movq (%rcx), %r9
xorps %xmm1, %xmm1
cvtsi2sdl 0x4(%rdi), %xmm1
movq (%rdx), %r10
xorl %r11d, %r11d
movsd 0x38(%rdi), %xmm2
divsd %xmm0, %xmm2
movsd %xmm2, (%r8,%r11,8)
movsd %xmm2, (%r9,%r11,8)
addsd (%r8,%r11,8), %xmm2
movsd 0x30(%rdi), %xmm3
mulsd %xmm1, %xmm3
mulsd %xmm0, %xmm3
divsd 0x10(%rdi), %xmm3
addsd %xmm2, %xmm3
movsd %xmm3, (%r10,%r11,8)
incq %r11
cmpq %r11, %rax
jne 0x3dd3
movq (%rcx), %rcx
xorl %r8d, %r8d
movq %r8, -0x8(%rcx,%rax,8)
movq (%rsi), %rcx
movq %r8, (%rcx)
movl 0x8(%rdi), %ecx
movsd 0x38(%rdi), %xmm1
cmpl $0x1, %ecx
je 0x3e46
cmpl $0x2, %ecx
jne 0x3e57
movq (%rdx), %rcx
movsd (%rcx), %xmm2
divsd %xmm0, %xmm1
subsd %xmm1, %xmm2
jmp 0x3e8f
divsd %xmm0, %xmm1
movq (%rdx), %rcx
addsd (%rcx), %xmm1
movsd %xmm1, (%rcx)
jmp 0x3e93
movsd 0x11e1(%rip), %xmm2     # 0x5040
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
movq (%rdx), %rcx
addsd (%rcx), %xmm2
movsd %xmm2, (%rcx)
decq %rax
movl 0xc(%rdi), %ecx
movsd 0x38(%rdi), %xmm1
cmpl $0x2, %ecx
je 0x3ebb
cmpl $0x1, %ecx
jne 0x3ecd
divsd %xmm0, %xmm1
movq (%rdx), %rcx
addsd (%rcx,%rax,8), %xmm1
movsd %xmm1, (%rcx,%rax,8)
jmp 0x3f07
movq (%rdx), %rcx
movsd (%rcx,%rax,8), %xmm2
divsd %xmm0, %xmm1
subsd %xmm1, %xmm2
jmp 0x3f02
movsd 0x116b(%rip), %xmm2     # 0x5040
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
movq (%rdx), %rcx
addsd (%rcx,%rax,8), %xmm2
movsd %xmm2, (%rcx,%rax,8)
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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
movl (%rdi), %ecx
cvtsi2sd %ecx, %xmm1
movsd 0x18(%rdi), %xmm0
divsd %xmm1, %xmm0
leal -0x1(%rcx), %eax
cmpl $0x3, %ecx
jl 0x3f62
xorps %xmm1, %xmm1
cvtsi2sdl 0x4(%rdi), %xmm1
movq (%rdx), %rcx
movq (%rsi), %r8
movl %eax, %r9d
movl $0x1, %r10d
movsd 0x30(%rdi), %xmm2
mulsd %xmm1, %xmm2
mulsd %xmm0, %xmm2
divsd 0x10(%rdi), %xmm2
mulsd (%rcx,%r10,8), %xmm2
movsd %xmm2, (%r8,%r10,8)
incq %r10
cmpq %r10, %r9
jne 0x3f3c
xorps %xmm1, %xmm1
cvtsi2sdl 0x4(%rdi), %xmm1
mulsd 0x30(%rdi), %xmm1
mulsd %xmm0, %xmm1
divsd 0x10(%rdi), %xmm1
movl 0x8(%rdi), %ecx
movq (%rdx), %r8
movsd (%r8), %xmm2
cmpl $0x1, %ecx
je 0x3f9c
cmpl $0x2, %ecx
jne 0x3fb0
movsd 0x60(%rdi), %xmm3
xorpd 0x1076(%rip), %xmm3     # 0x5010
jmp 0x3fdb
movsd 0x38(%rdi), %xmm3
addsd %xmm3, %xmm3
divsd %xmm0, %xmm3
mulsd 0x40(%rdi), %xmm3
jmp 0x3fdb
movsd 0x38(%rdi), %xmm4
movsd 0x40(%rdi), %xmm3
movsd 0x107e(%rip), %xmm5     # 0x5040
divsd 0x20(%rdi), %xmm5
addsd %xmm4, %xmm4
movapd %xmm0, %xmm6
divsd %xmm4, %xmm6
addsd %xmm5, %xmm6
divsd %xmm6, %xmm3
mulsd %xmm2, %xmm1
addsd %xmm3, %xmm1
movq (%rsi), %rcx
movsd %xmm1, (%rcx)
movl 0x4(%rdi), %ecx
movl 0xc(%rdi), %r8d
movsd 0x30(%rdi), %xmm3
movsd 0x10(%rdi), %xmm1
cltq
movq (%rdx), %rdx
movsd (%rdx,%rax,8), %xmm2
cmpl $0x2, %r8d
je 0x4025
cmpl $0x1, %r8d
jne 0x4034
movsd 0x38(%rdi), %xmm4
addsd %xmm4, %xmm4
divsd %xmm0, %xmm4
mulsd 0x48(%rdi), %xmm4
jmp 0x405f
movsd 0x58(%rdi), %xmm4
xorpd 0xfde(%rip), %xmm4      # 0x5010
jmp 0x405f
movsd 0x38(%rdi), %xmm5
movsd 0x48(%rdi), %xmm4
movsd 0xffa(%rip), %xmm6      # 0x5040
divsd 0x28(%rdi), %xmm6
addsd %xmm5, %xmm5
movapd %xmm0, %xmm7
divsd %xmm5, %xmm7
addsd %xmm6, %xmm7
divsd %xmm7, %xmm4
xorps %xmm5, %xmm5
cvtsi2sd %ecx, %xmm5
mulsd %xmm5, %xmm3
mulsd %xmm3, %xmm0
divsd %xmm1, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm4, %xmm0
movq (%rsi), %rcx
movsd %xmm0, (%rcx,%rax,8)
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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
movq (%rdi), %rdx
movq 0x8(%rdi), %rax
cmpq %rax, %rdx
sete %dil
movq %rdx, %rcx
addq $0x8, %rcx
cmpq %rax, %rcx
sete %sil
orb %dil, %sil
movq %rdx, %r8
jne 0x416b
movq %rcx, %rdi
movq %rdx, %r9
movsd (%r9), %xmm0
ucomisd (%rdi), %xmm0
movq %rdi, %r8
ja 0x415f
movq %r9, %r8
addq $0x8, %rdi
movq %r8, %r9
cmpq %rax, %rdi
jne 0x414e
movsd (%r8), %xmm1
testb %sil, %sil
je 0x417a
movq %rdx, %rsi
jmp 0x4196
movsd (%rcx), %xmm0
ucomisd (%rdx), %xmm0
movq %rcx, %rsi
ja 0x418a
movq %rdx, %rsi
addq $0x8, %rcx
movq %rsi, %rdx
cmpq %rax, %rcx
jne 0x417a
movsd (%rsi), %xmm0
movapd 0x102e(%rip), %xmm2     # 0x51d0
andpd %xmm2, %xmm0
andpd %xmm2, %xmm1
maxsd %xmm1, %xmm0
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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, -0x48(%rbp)
movq %rdx, -0x50(%rbp)
movq %rsi, -0x40(%rbp)
movq %rdi, %r15
movq 0x8(%r8), %r13
subq (%r8), %r13
shrq $0x3, %r13
movslq %r13d, %r14
xorl %eax, %eax
leaq -0x68(%rbp), %rdx
movq %rax, (%rdx)
leaq -0x80(%rbp), %rdi
leaq -0x38(%rbp), %rbx
movq %r14, %rsi
movq %rbx, %rcx
callq 0x32ea
xorl %eax, %eax
movq %rax, (%rbx)
leaq -0x68(%rbp), %rdi
leaq -0x38(%rbp), %rdx
leaq -0x29(%rbp), %rcx
movq %r14, %rsi
callq 0x32ea
leaq -0x38(%rbp), %rdx
movq $0x0, (%rdx)
leaq -0x29(%rbp), %rcx
movq %r15, %rdi
movq %r14, %rsi
callq 0x32ea
movq -0x48(%rbp), %rax
movq (%rax), %rcx
movsd (%rcx), %xmm0
movq -0x50(%rbp), %rax
movq (%rax), %rdx
divsd (%rdx), %xmm0
movq -0x80(%rbp), %rax
movsd %xmm0, (%rax)
movq (%r12), %rsi
movsd (%rsi), %xmm0
divsd (%rdx), %xmm0
movq -0x68(%rbp), %rdi
movsd %xmm0, (%rdi)
cmpl $0x2, %r13d
jl 0x42e1
movq -0x40(%rbp), %r8
movq (%r8), %r8
movl %r13d, %r9d
andl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
movl $0x1, %r10d
movsd (%rcx,%r10,8), %xmm0
movsd (%rdx,%r10,8), %xmm1
movsd -0x8(%rax,%r10,8), %xmm2
movsd (%r8,%r10,8), %xmm3
mulsd %xmm2, %xmm3
subsd %xmm3, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, (%rax,%r10,8)
movsd (%r8,%r10,8), %xmm0
movsd -0x8(%rdi,%r10,8), %xmm1
mulsd %xmm0, %xmm1
addsd (%rsi,%r10,8), %xmm1
movsd (%rdx,%r10,8), %xmm3
mulsd %xmm2, %xmm0
subsd %xmm0, %xmm3
divsd %xmm3, %xmm1
movsd %xmm1, (%rdi,%r10,8)
incq %r10
cmpq %r10, %r9
jne 0x427f
movsd -0x8(%rdi,%r14,8), %xmm0
movq (%r15), %rcx
movsd %xmm0, -0x8(%rcx,%r14,8)
cmpl $0x2, %r13d
jl 0x4321
leal -0x1(%r13), %edx
movl %edx, %edx
movsd (%rcx,%rdx,8), %xmm0
incq %rdx
mulsd -0x10(%rax,%rdx,8), %xmm0
addsd -0x10(%rdi,%rdx,8), %xmm0
movsd %xmm0, -0x10(%rcx,%rdx,8)
decq %rdx
cmpq $0x1, %rdx
jg 0x4306
movq -0x58(%rbp), %rsi
subq %rdi, %rsi
callq 0x21c0
movq -0x80(%rbp), %rdi
testq %rdi, %rdi
je 0x4342
movq -0x70(%rbp), %rsi
subq %rdi, %rsi
callq 0x21c0
movq %r15, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x68(%rbp), %rdi
testq %rdi, %rdi
je 0x4371
movq -0x58(%rbp), %rsi
subq %rdi, %rsi
callq 0x21c0
jmp 0x4371
movq %rax, %rbx
movq -0x80(%rbp), %rdi
testq %rdi, %rdi
je 0x4386
movq -0x70(%rbp), %rsi
subq %rdi, %rsi
callq 0x21c0
movq %rbx, %rdi
callq 0x2280
// File: /workspace/github_cpp_makefile_star2_O1/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)
movq $0x0, 0x48(%rdi)
movq %r14, %rdi
callq 0x3bb4
movq %r15, %rdi
movq %rbp, %rsi
callq 0x3c8a
movq %r12, %rdi
movq %r13, %rsi
callq 0x3c8a
movq 0x28(%rbx), %rdx
movq 0x38(%rbx), %rax
subq 0x20(%rbx), %rdx
shrq $0x2, %rdx
decl %edx
movq 0x40(%rbx), %rcx
movl %edx, (%rbx)
movl $0x0, 0x4(%rbx)
subq %rax, %rcx
je 0x258c
sarq $0x2, %rcx
movl 0x4(%rbx), %esi
movl $0x1, %edx
movl -0x4(%rax,%rdx,4), %edi
cmpl %esi, %edi
jle 0x2582
movl %edi, 0x4(%rbx)
movl %edi, %esi
movl %edx, %edi
incq %rdx
cmpq %rdi, %rcx
ja 0x2575
incl 0x4(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r13
movq (%r12), %rdi
testq %rdi, %rdi
je 0x25b6
movq 0x48(%rbx), %rsi
subq %rdi, %rsi
callq 0x2190
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x22b0
movq %r13, %rdi
callq 0x2270
// File: /workspace/github_cpp_makefile_star2_O1/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:
pushq %rbx
movl %esi, %eax
movq 0x20(%rdi), %rcx
movl (%rcx,%rax,4), %eax
incl %esi
movslq (%rcx,%rsi,4), %rcx
cmpl %ecx, %eax
jge 0x2b65
movslq %eax, %rsi
leaq (,%rsi,4), %r8
addq 0x38(%rdi), %r8
subq %rsi, %rcx
xorl %r9d, %r9d
movl %eax, %r10d
movl $0x1, %r11d
xorl %esi, %esi
cmpl %edx, (%r8,%r9,4)
leal (%r10,%r9), %ebx
cmovel %ebx, %eax
movzbl %sil, %esi
cmovel %r11d, %esi
incq %r9
cmpq %r9, %rcx
jne 0x2b48
jmp 0x2b67
xorl %esi, %esi
xorps %xmm0, %xmm0
testb $0x1, %sil
je 0x2b7b
cltq
movq 0x8(%rdi), %rcx
movsd (%rcx,%rax,8), %xmm0
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 %r14
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movsd %xmm0, 0x8(%rsp)
addq $0x8, %rdi
movq 0x10(%rbx), %rsi
movq 0x18(%rbx), %rax
cmpq %rsi, 0x8(%rbx)
je 0x2bb9
cmpq %rax, %rsi
je 0x2bd3
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x10(%rbx)
jmp 0x2bdd
cmpq %rax, %rsi
je 0x2c49
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x10(%rbx)
jmp 0x2c53
leaq 0x8(%rsp), %rdx
callq 0x3ff8
movl %ebp, 0x4(%rsp)
movq 0x40(%rbx), %rsi
cmpq 0x48(%rbx), %rsi
je 0x2bf7
movl %ebp, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x40(%rbx)
jmp 0x2c05
leaq 0x38(%rbx), %rdi
leaq 0x4(%rsp), %rdx
callq 0x423c
movq 0x20(%rbx), %rax
movq 0x28(%rbx), %rsi
movq %rsi, %rcx
subq %rax, %rcx
movq %rcx, %rdx
sarq $0x2, %rdx
incl %r14d
cmpq %r14, %rdx
jbe 0x2c2b
incl -0x4(%rax,%rcx)
jmp 0x2ceb
movq 0x10(%rbx), %rax
subq 0x8(%rbx), %rax
shrq $0x3, %rax
movl %eax, 0x4(%rsp)
cmpq 0x30(%rbx), %rsi
je 0x2cda
movl %eax, (%rsi)
jmp 0x2cc6
leaq 0x8(%rsp), %rdx
callq 0x3ff8
movl %ebp, 0x4(%rsp)
movq 0x40(%rbx), %rsi
cmpq 0x48(%rbx), %rsi
je 0x2c6d
movl %ebp, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x40(%rbx)
jmp 0x2c7b
leaq 0x38(%rbx), %rdi
leaq 0x4(%rsp), %rdx
callq 0x423c
leaq 0x20(%rbx), %r14
movl $0x0, 0x4(%rsp)
movq 0x28(%rbx), %rsi
cmpq 0x30(%rbx), %rsi
je 0x2ca1
movl $0x0, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x28(%rbx)
jmp 0x2cae
leaq 0x4(%rsp), %rdx
movq %r14, %rdi
callq 0x423c
movl $0x1, 0x4(%rsp)
movq 0x28(%rbx), %rsi
cmpq 0x30(%rbx), %rsi
je 0x2cd0
movl $0x1, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x28(%rbx)
jmp 0x2ceb
leaq 0x4(%rsp), %rdx
movq %r14, %rdi
jmp 0x2ce6
addq $0x20, %rbx
leaq 0x4(%rsp), %rdx
movq %rbx, %rdi
callq 0x423c
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 $0x48, %rsp
movq %rsi, %rbx
movq 0x8(%rdx), %rsi
movq %rdx, 0x28(%rsp)
subq (%rdx), %rsi
sarq $0x3, %rsi
leaq 0xf(%rsp), %rdx
movq %rdi, 0x10(%rsp)
callq 0x3d60
movq %rbx, 0x18(%rsp)
movslq (%rbx), %rax
movq %rax, 0x30(%rsp)
testq %rax, %rax
jle 0x2e31
movq 0x18(%rsp), %rax
movl 0x4(%rax), %ecx
movq 0x20(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x10(%rsp), %rax
movq (%rax), %rdx
xorl %edi, %edi
movl $0x1, %r8d
testl %ecx, %ecx
jle 0x2e23
movq 0x28(%rsp), %rax
movq (%rax), %rsi
movq 0x20(%rsp), %rax
movslq (%rax,%rdi,4), %r14
movslq 0x4(%rax,%rdi,4), %r9
movq 0x18(%rsp), %rax
movq 0x8(%rax), %r10
movq %r10, 0x38(%rsp)
movsd (%rdx,%rdi,8), %xmm0
movq %r9, %r13
subq %r14, %r13
movl %r14d, %ebp
movq %r14, %r10
shlq $0x2, %r10
addq 0x38(%rax), %r10
xorl %ebx, %ebx
movq %rdi, 0x40(%rsp)
cmpl %r9d, %r14d
jge 0x2df0
movq %r9, %rdi
movq %rsi, %r11
movq %rdx, %r9
movq %rcx, %rsi
xorl %edx, %edx
xorl %r15d, %r15d
movl %r14d, %eax
movl (%r10,%rdx,4), %r12d
leal (%rdx,%rbp), %ecx
cmpq %r12, %rbx
cmovel %ecx, %eax
movzbl %r15b, %r15d
cmovel %r8d, %r15d
incq %rdx
cmpq %rdx, %r13
jne 0x2dc0
movq %rsi, %rcx
movq %r9, %rdx
movq %r11, %rsi
movq %rdi, %r9
movq 0x40(%rsp), %rdi
jmp 0x2df6
xorl %r15d, %r15d
movl %r14d, %eax
xorpd %xmm1, %xmm1
testb $0x1, %r15b
je 0x2e0d
cltq
movq 0x38(%rsp), %r11
movsd (%r11,%rax,8), %xmm1
mulsd (%rsi,%rbx,8), %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, (%rdx,%rdi,8)
incq %rbx
cmpq %rcx, %rbx
jne 0x2da7
incq %rdi
cmpq 0x30(%rsp), %rdi
jne 0x2d5b
movq 0x10(%rsp), %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %esi, %r14d
movl %esi, %eax
movq 0x20(%rdi), %rcx
movslq (%rcx,%rax,4), %r12
leal 0x1(%r14), %r13d
cmpl (%rcx,%r13,4), %r12d
jge 0x2f03
movl %edx, %ebx
movq %rdi, %r15
addl $0x2, %r14d
movq 0x38(%r15), %rax
cmpl %ebx, (%rax,%r12,4)
jne 0x2eef
movq 0x8(%r15), %rax
movq 0x10(%r15), %rdx
leaq (%rax,%r12,8), %rsi
addq $0x8, %rsi
cmpq %rdx, %rsi
je 0x2e9e
leaq (%rax,%r12,8), %rdi
subq %rsi, %rdx
callq 0x2260
addq $-0x8, 0x10(%r15)
movq 0x38(%r15), %rax
movq 0x40(%r15), %rdx
leaq (%rax,%r12,4), %rsi
addq $0x4, %rsi
cmpq %rdx, %rsi
je 0x2ec4
leaq (%rax,%r12,4), %rdi
subq %rsi, %rdx
callq 0x2260
addq $-0x4, 0x40(%r15)
movq 0x20(%r15), %rax
movq 0x28(%r15), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %r13, %rcx
jbe 0x2eef
movl %r14d, %edx
movq %r13, %rsi
decl (%rax,%rsi,4)
movl %edx, %esi
incl %edx
cmpq %rsi, %rcx
ja 0x2ee3
incq %r12
movq 0x20(%r15), %rax
movslq (%rax,%r13,4), %rax
cmpq %rax, %r12
jl 0x2e73
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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:
cmpl $0x0, (%rdi)
jle 0x3000
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r12d, %r12d
movq 0x60a9(%rip), %r14      # 0x8fd8
leaq 0x323a(%rip), %r15      # 0x6170
movl $0x1, %ebp
cmpl $0x0, 0x4(%rbx)
jle 0x2fbc
xorl %r13d, %r13d
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x21c0
movq 0x20(%rbx), %rcx
movl (%rcx,%r12,4), %eax
movslq 0x4(%rcx,%r12,4), %rcx
cmpl %ecx, %eax
jge 0x2f96
movslq %eax, %rsi
subq %rsi, %rcx
shlq $0x2, %rsi
addq 0x38(%rbx), %rsi
xorl %edi, %edi
movl %eax, %r8d
xorl %edx, %edx
cmpl %r13d, (%rsi,%rdi,4)
leal (%r8,%rdi), %r9d
cmovel %r9d, %eax
movzbl %dl, %edx
cmovel %ebp, %edx
incq %rdi
cmpq %rdi, %rcx
jne 0x2f7a
jmp 0x2f98
xorl %edx, %edx
xorps %xmm0, %xmm0
testb $0x1, %dl
je 0x2fab
cltq
movq 0x8(%rbx), %rcx
movsd (%rcx,%rax,8), %xmm0
movq %r14, %rdi
callq 0x2250
incl %r13d
cmpl 0x4(%rbx), %r13d
jl 0x2f44
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20e0
incq %r12
movslq (%rbx), %rax
cmpq %rax, %r12
jl 0x2f3b
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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
xorpd %xmm1, %xmm1
xorpd %xmm0, %xmm0
subq %rax, %rcx
je 0x3032
sarq $0x3, %rcx
xorl %edx, %edx
movsd (%rax,%rdx,8), %xmm2
mulsd %xmm2, %xmm2
addsd %xmm2, %xmm0
incq %rdx
movl %edx, %esi
cmpq %rsi, %rcx
ja 0x301b
ucomisd %xmm1, %xmm0
jb 0x2120
sqrtsd %xmm0, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x238, %rsp            # imm = 0x238
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x30(%rsp), %rdi
callq 0x21b0
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
movl $0x8, %edx
callq 0x2150
leaq 0xa8(%rsp), %rdi
callq 0x2050
testb %al, %al
je 0x5233
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1131(%rip), %rdx      # 0x627b
movq %rsp, %rdi
movq %rdx, %rsi
callq 0x3f68
leaq 0x30(%rsp), %r14
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x21f0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x51e1
movq (%rsp), %r13
callq 0x2040
movq %rax, %rbp
movl (%rax), %r12d
movl $0x0, (%rax)
movq %r13, %rdi
leaq 0x28(%rsp), %rsi
callq 0x2100
cmpq %r13, 0x28(%rsp)
je 0x521b
movl (%rbp), %eax
testl %eax, %eax
je 0x51ad
cmpl $0x22, %eax
jne 0x51b1
jmp 0x5227
movl %r12d, (%rbp)
movsd %xmm0, 0x20(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x51cf
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x515d
movq %rbx, %rdi
leaq 0x20(%rsp), %rdx
callq 0x3ff8
jmp 0x515d
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x51fc
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2190
leaq 0x30(%rsp), %rdi
callq 0x2060
movq %rbx, %rax
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xf17(%rip), %rdi       # 0x6139
callq 0x20d0
leaq 0xf0b(%rip), %rdi       # 0x6139
callq 0x2220
movq 0x3d9e(%rip), %rdi      # 0x8fd8
leaq 0xedf(%rip), %rsi       # 0x6120
movl $0x18, %edx
callq 0x21c0
movq 0x3d86(%rip), %rdi      # 0x8fd8
callq 0x20a0
movl $0x1, %edi
callq 0x21d0
jmp 0x5268
movq %rax, %r14
jmp 0x52a6
movq %rax, %r14
jmp 0x529c
jmp 0x526f
movq %rax, %r14
jmp 0x5281
movq %rax, %r14
cmpl $0x0, (%rbp)
jne 0x5281
movl %r12d, (%rbp)
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x529c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2190
leaq 0x30(%rsp), %rdi
callq 0x2060
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x52ba
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x2190
movq %r14, %rdi
callq 0x2270
// File: /workspace/github_cpp_makefile_star2_O1/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, 0x8(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
xorl %eax, %eax
cmpq 0xdb0c0(%rip), %rsi     # 0x125fd0
leaq 0x8d54c(%rip), %rcx     # 0xd8463
leaq 0x8d551(%rip), %rsi     # 0xd846f
cmoveq %rcx, %rsi
setne %al
leaq 0x20(%rsp), %r14
movq %r14, -0x10(%r14)
leaq (%rsi,%rax,2), %rdx
addq $0xb, %rdx
leaq 0x10(%rsp), %rdi
callq 0x18eca
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x517e2
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x4af5e
callq 0xe240
movq 0x50(%rsp), %rsi
cmpq 0x58(%rsp), %rsi
je 0x4af7a
movq 0x8(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x50(%rsp)
jmp 0x4af89
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x4e3fa
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x4e35a
movq 0x10(%rsp), %rbx
movq 0x18(%rsp), %r14
cmpq %r14, %rbx
je 0x4afc6
movq 0x48(%rsp), %r15
movq 0x50(%rsp), %r12
cmpq %r12, %r15
je 0x4afc0
movq %rbx, %rdi
callq *(%r15)
addq $0x8, %r15
jmp 0x4afaf
subq $-0x80, %rbx
jmp 0x4afa0
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x49a6d
leaq 0x10(%rsp), %rdi
callq 0x4b724
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x4afee
callq 0xe240
leaq 0x30(%rsp), %rdi
callq 0x1dafc
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x4b01e
jmp 0x4b023
jmp 0x4b01e
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x4b030
callq 0xe240
jmp 0x4b030
movq %rax, %rbx
jmp 0x4b030
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x4b724
leaq 0x30(%rsp), %rdi
callq 0x4e3de
movq %rbx, %rdi
callq 0xe3c0