LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/kram[P]kram/./src/parser/parser.cpp
// Function: Parser::keyword_while()
Instruction* Parser::keyword_while() {
	Instruction* ins = new Instruction(Ins::WHILE);

	ins->left = this->read_until(std::vector<lexer::Token>{
		lexer::Token::OPERATOR("{")
	});

	this->advance();
	ins->right = this->read_until(std::vector<lexer::Token>{
		lexer::Token::OPERATOR("}")
	});

	return ins;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xc0, %rsp
movq %rdi, %r14
movl $0x80, %edi
callq 0x3230
movq %rax, %rbx
movl $0xd, (%rax)
addq $0x18, %rax
movq %rax, 0x8(%rbx)
andq $0x0, 0x10(%rbx)
movb $0x0, 0x18(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%rbx)
movups %xmm0, 0x48(%rbx)
movups %xmm0, 0x58(%rbx)
movups %xmm0, 0x68(%rbx)
andq $0x0, 0x78(%rbx)
movl $0x2, 0x30(%rbx)
leaq 0x2180(%rip), %rsi      # 0x112ad
leaq 0xa0(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x30f0
leaq 0x10(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x63f2
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rsi
pushq $0x1
popq %rdx
leaq 0xe(%rsp), %rcx
callq 0xf720
leaq 0x68(%rsp), %rdi
leaq 0x50(%rsp), %rdx
movq %r14, %rsi
callq 0xca06
leaq 0x38(%rbx), %rdi
leaq 0x68(%rsp), %r15
movq %r15, %rsi
callq 0x10148
movq %r15, %rdi
callq 0x42f2
leaq 0x50(%rsp), %rdi
callq 0xf75a
leaq 0x18(%rsp), %rdi
callq 0x3130
leaq 0xa0(%rsp), %rdi
callq 0x3130
cmpb $0x1, 0x20(%r14)
jne 0xf1c1
incl 0x18(%r14)
jmp 0xf1c6
movb $0x1, 0x20(%r14)
leaq 0x20e2(%rip), %rsi      # 0x112af
leaq 0x80(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x30f0
leaq 0x10(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x63f2
leaq 0x38(%rsp), %rdi
leaq 0x10(%rsp), %rsi
pushq $0x1
popq %rdx
leaq 0xe(%rsp), %rcx
callq 0xf720
leaq 0x68(%rsp), %rdi
leaq 0x38(%rsp), %rdx
movq %r14, %rsi
callq 0xca06
movq %rbx, %rdi
addq $0x50, %rdi
leaq 0x68(%rsp), %r14
movq %r14, %rsi
callq 0x10148
movq %r14, %rdi
callq 0x42f2
leaq 0x38(%rsp), %rdi
callq 0xf75a
leaq 0x18(%rsp), %rdi
callq 0x3130
leaq 0x80(%rsp), %rdi
callq 0x3130
movq %rbx, %rax
addq $0xc0, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0xf75a
jmp 0xf279
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x3130
jmp 0xf288
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
jmp 0xf2bd
jmp 0xf2c4
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xf75a
jmp 0xf2a6
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x3130
jmp 0xf2b5
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x3130
jmp 0xf2c7
movq %rax, %rbx
movq %rbx, %rdi
callq 0x3390
nop
// File: /workspace/github_cpp_makefile_star2_O2/kram[P]kram/./src/parser/parser.cpp
// Function: Parser::boolean_init(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Instruction* Parser::boolean_init(std::string val) {
	Instruction* ins = new Instruction(Ins::LITERAL);

	if (val == "true") {
		ins->value = new Value(Type::BOOL, 1);
	} else {
		ins->value = new Value(Type::BOOL, 0);
	}

	return ins;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movl $0x80, %edi
callq 0x3230
movq %rax, %rbx
pushq $0x2
popq %rax
movl %eax, (%rbx)
leaq 0x18(%rbx), %rcx
movq %rcx, 0x8(%rbx)
andq $0x0, 0x10(%rbx)
movb $0x0, 0x18(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%rbx)
movups %xmm0, 0x48(%rbx)
movups %xmm0, 0x58(%rbx)
movups %xmm0, 0x68(%rbx)
andq $0x0, 0x78(%rbx)
movl %eax, 0x30(%rbx)
leaq 0x1d75(%rip), %rsi      # 0x11247
movq %r14, %rdi
callq 0x3b79
movl %eax, %ebp
pushq $0x10
popq %rdi
callq 0x3230
movq %rax, %r14
testb %bpl, %bpl
je 0xf501
pushq $0x3
popq %rsi
movsd 0x1f31(%rip), %xmm0     # 0x11428
movq %r14, %rdi
callq 0xbb54
jmp 0xf50f
pushq $0x3
popq %rsi
xorps %xmm0, %xmm0
movq %r14, %rdi
callq 0xbb54
movq %r14, 0x28(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
jmp 0xf51d
movq %rax, %rbx
movq %r14, %rdi
callq 0x3210
movq %rbx, %rdi
callq 0x3390
// File: /workspace/github_cpp_makefile_star2_O2/UCBASiCS[P]SPRIGHT/src/backend.cpp
// Function: BackEnd::initialize()
void BackEnd::initialize()
{
    decodedFrequencies.clear();
    realFrequenciesIndices.clear();

    // peeling engine checks for singletons only in the updated (changed) bins
    // initialize all to true so that all the bins are check on the first run through
    for (int binAbsoluteIndex = 0; binAbsoluteIndex < config->getBinsSum(); binAbsoluteIndex++)
    {
        changed[binAbsoluteIndex] = true;
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
addq $0x30, %rdi
callq 0x4070
movq 0x68(%rbx), %rax
cmpq %rax, 0x70(%rbx)
je 0x3c04
movq %rax, 0x70(%rbx)
xorl %r14d, %r14d
movq 0x10(%rbx), %rdi
callq 0x67c6
cltq
cmpq %rax, %r14
jge 0x3c28
movq 0x80(%rbx), %rax
movb $0x1, (%rax,%r14)
incq %r14
jmp 0x3c07
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/UCBASiCS[P]SPRIGHT/src/backend.cpp
// Function: BackEnd::printObservations()
void BackEnd::printObservations() {
    for (int stagePrint = 0; stagePrint < config->getBinsNb(); stagePrint++) {
        std::cout<< "-------------------------------" << std::endl;
        for (int r = 0; r < config->getBinNumItems(stagePrint); r++) {
            for (int c = 0; c < config->getDelaysNb(); c++) {
                std::cout << observationMatrix[r + config->getBinOffset(stagePrint)][c] << ", ";
            }
            std::cout << std::endl;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r14d, %r14d
movq 0x10(%rbx), %rdi
callq 0x67ca
cmpl %eax, %r14d
jge 0x3ec7
movq 0x1019c(%rip), %rdi     # 0x13fd0
leaq 0x81fd(%rip), %rsi      # 0xc038
callq 0x3250
movq %rax, %rdi
callq 0x3110
xorl %ebp, %ebp
movq 0x10(%rbx), %rdi
movl %r14d, %esi
callq 0x6730
cmpl %eax, %ebp
jge 0x3ebf
xorl %r12d, %r12d
xorl %r13d, %r13d
movq 0x10(%rbx), %rdi
callq 0x67d8
cltq
cmpq %rax, %r13
jge 0x3eaf
movq 0x10(%rbx), %rdi
movq 0x28(%rbx), %r15
movl %r14d, %esi
callq 0x67ba
addl %ebp, %eax
cltq
movq (%r15,%rax,8), %rsi
addq %r12, %rsi
movq 0x1013e(%rip), %rdi     # 0x13fd0
callq 0x32c0
movq %rax, %rdi
leaq 0x9032(%rip), %rsi      # 0xced3
callq 0x3250
incq %r13
addq $0x10, %r12
jmp 0x3e60
movq 0x1011a(%rip), %rdi     # 0x13fd0
callq 0x3110
incl %ebp
jmp 0x3e4a
incl %r14d
jmp 0x3e1b
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/UCBASiCS[P]SPRIGHT/src/backend.cpp
// Function: BackEnd::getHash(int, int)
int BackEnd::getHash(int stage, int spectralIndex)
{
    bool** subsamplingMatrix = config->getSubsamplingMatrix(stage);
    int ret = 0;

    for (int r = 0; r < config->getBinNumIndices(stage); r++) {
        bool currState = false;
        for (int c = 0; c < config->getSignalBitLength(); c++) {
            // currState = currState ^ (subsamplingMatrix[r][c] & (spectralIndexBinary[c] == 1));
            int shifted = 1 << (config->getSignalBitLength() - c - 1);
            currState = currState ^ (subsamplingMatrix[r][c] & ( (spectralIndex & shifted) == shifted));

        }
        if (currState)
            ret += 1<< (config->getBinNumIndices(stage)- r-1);
    }
    return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, 0x14(%rsp)
movq %rdi, %r14
movq 0x10(%rdi), %rdi
movl %esi, 0x10(%rsp)
callq 0x680c
movq %rax, %r15
xorl %r13d, %r13d
movl $0x0, 0xc(%rsp)
movq 0x10(%r14), %rdi
movl 0x10(%rsp), %esi
callq 0x677c
cltq
cmpq %rax, %r13
jge 0x3fa3
xorl %r12d, %r12d
pushq $-0x1
popq %rax
movl %eax, %ebp
xorl %ebx, %ebx
movq 0x10(%r14), %rdi
callq 0x6700
cltq
cmpq %rax, %r12
jge 0x3f79
movq 0x10(%r14), %rdi
callq 0x6700
leal (%rax,%rbp), %ecx
movzbl %bl, %eax
andl $0x1, %eax
movq (%r15,%r13,8), %rdx
movzbl (%rdx,%r12), %edx
movl 0x14(%rsp), %esi
shrl %cl, %esi
andl %edx, %esi
cmpl %eax, %esi
setne %bl
incq %r12
decl %ebp
jmp 0x3f3a
testb $0x1, %bl
je 0x3f9b
movq 0x10(%r14), %rdi
movl 0x10(%rsp), %esi
callq 0x677c
movl %r13d, %ecx
notl %ecx
addl %eax, %ecx
pushq $0x1
popq %rax
shll %cl, %eax
addl %eax, 0xc(%rsp)
incq %r13
jmp 0x3f1c
movl 0xc(%rsp), %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/UCBASiCS[P]SPRIGHT/src/binprocessor.cpp
// Function: BinProcessor::BinProcessor(Chrono*, Config const*, std::complex<double>**, std::vector<int, std::allocator<int>> const&)
BinProcessor::BinProcessor(Chrono *newChrono, const Config* newConfig, ffast_complex** newObservationMatrix, const std::vector<int>& newDelays):
    Step(newChrono, newConfig), observationMatrix(newObservationMatrix), delays(newDelays)
{
    signalLength     = config->getSignalLength();
    delaysNb         = config->getDelaysNb();
    chainsNb         = config->getChainsNb();
    delaysPerBunchNb = config->getDelaysPerBunchNb();

    MLdetection         = config->needToUseMaximumLikelihoodDetection();

    signalVector    = (ffast_complex*) malloc(delaysNb * sizeof(ffast_complex));
    thresholds      = (ffast_real*) malloc(config->getBinsNb() * sizeof(ffast_real));
    directionVector = (ffast_complex*) malloc(delaysNb * sizeof(ffast_complex));
    computeThresholds();
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
leaq 0xf12e(%rip), %rax      # 0x13920
movq %rax, (%rdi)
movq %rcx, 0x18(%rdi)
leaq 0x88(%rdi), %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rdi)
movq %rbx, %rdi
movq %r8, %rsi
callq 0x5024
movq 0x10(%r14), %rdi
callq 0x6710
movl %eax, 0x20(%r14)
movq 0x10(%r14), %rdi
callq 0x67d8
movl %eax, 0x24(%r14)
movq 0x10(%r14), %rdi
callq 0x67dc
movl %eax, 0x28(%r14)
movq 0x10(%r14), %rdi
callq 0x67e0
movl %eax, 0x2c(%r14)
movq 0x10(%r14), %rdi
callq 0x6714
movb %al, 0x68(%r14)
movslq 0x24(%r14), %rdi
shlq $0x4, %rdi
callq 0x3320
movq %rax, 0x50(%r14)
movq 0x10(%r14), %rdi
callq 0x67ca
movslq %eax, %rdi
shlq $0x3, %rdi
callq 0x3320
movq %rax, 0x78(%r14)
movslq 0x24(%r14), %rdi
shlq $0x4, %rdi
callq 0x3320
movq %rax, 0x80(%r14)
movq %r14, %rdi
callq 0x48b4
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x41c6
movq %r14, %rdi
callq 0x3490
// File: /workspace/github_cpp_makefile_star2_O2/UCBASiCS[P]SPRIGHT/src/binprocessor.cpp
// Function: BinProcessor::process()
void BinProcessor::process()
{
    if (MLdetection)
    {
        // MLprocess tries out all possible locations and estimates bin signal
        MLprocess();
    }
    else
    {
        computeLocation();
        estimateBinSignal();
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpb $0x1, 0x68(%rdi)
jne 0x4b9b
movq %rbx, %rdi
popq %rbx
jmp 0x4bac
movq %rbx, %rdi
callq 0x4cdc
movq %rbx, %rdi
popq %rbx
jmp 0x4dde
// File: /workspace/github_cpp_makefile_star2_O2/UCBASiCS[P]SPRIGHT/src/binprocessor.cpp
// Function: BinProcessor::MLprocess()
void BinProcessor::MLprocess()
{
    ffast_real MLnoise = std::numeric_limits<ffast_real>::infinity();
    int MLlocation = 0;

    /*
        Iterate over all balls that could map to this bin, and find the best one.
    */

    int homSolution = mapToInt(binRelativeIndex, config->getBinNumIndices(stage), samplingPattern, config->getSignalBitLength());
    int locGenerator = pow(2,(config->getSignalBitLength())) -1 - samplingPattern;

    int nnz = config->getSignalBitLength() - config->getBinNumIndices(stage);
    for (int i =0; i <pow(2,nnz); i++)
    {
        location = homSolution ^ mapToInt(i,nnz,locGenerator,config->getSignalBitLength());

        estimateBinSignal();
        if (noise < MLnoise)
        {
            MLnoise = noise;
            MLlocation = location;
        }
    }
    location = MLlocation;
    noise = MLnoise;
    estimateBinSignal();
    return ;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl 0x5c(%rdi), %ebp
movq 0x10(%rdi), %rdi
movl 0x60(%rbx), %esi
callq 0x677c
movl %eax, %r14d
movl 0x64(%rbx), %r15d
movq 0x10(%rbx), %rdi
callq 0x6700
movl %ebp, %edi
movl %r14d, %esi
movl %r15d, %edx
movl %eax, %ecx
callq 0x5071
movl %eax, %ebp
movq 0x10(%rbx), %rdi
callq 0x6700
movsd 0x74ea(%rip), %xmm0     # 0xc0e8
movl %eax, %edi
callq 0x33c0
addsd 0x74e3(%rip), %xmm0     # 0xc0f0
cvtsi2sdl 0x64(%rbx), %xmm1
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %r14d
movq 0x10(%rbx), %rdi
callq 0x6700
movl %eax, %r15d
movq 0x10(%rbx), %rdi
movl 0x60(%rbx), %esi
callq 0x677c
subl %eax, %r15d
movsd 0x74ba(%rip), %xmm0     # 0xc0f8
movsd %xmm0, 0x8(%rsp)
xorl %r13d, %r13d
xorl %r12d, %r12d
cvtsi2sd %r12d, %xmm0
movsd %xmm0, 0x10(%rsp)
movsd 0x748b(%rip), %xmm0     # 0xc0e8
movl %r15d, %edi
callq 0x33c0
ucomisd 0x10(%rsp), %xmm0
jbe 0x4cb7
movq 0x10(%rbx), %rdi
callq 0x6700
movl %r12d, %edi
movl %r15d, %esi
movl %r14d, %edx
movl %eax, %ecx
callq 0x5071
xorl %ebp, %eax
movl %eax, 0x38(%rbx)
movq %rbx, %rdi
callq 0x4dde
movsd 0x70(%rbx), %xmm0
movsd 0x8(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x4ca8
movl 0x38(%rbx), %r13d
minsd %xmm1, %xmm0
incl %r12d
movsd %xmm0, 0x8(%rsp)
jmp 0x4c4a
movl %r13d, 0x38(%rbx)
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x70(%rbx)
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4dde
// File: /workspace/github_cpp_makefile_star2_O2/UCBASiCS[P]SPRIGHT/src/binprocessor.cpp
// Function: BinProcessor::computeLocation()
void BinProcessor::computeLocation()
{
    int tempLoc = 0;

    for(int q = 0; q < config->getSignalBitLength(); q++) {
        int runningSum = 0;
        for (int i = 0; i <config->getChainsNb(); i++) {
            ffast_complex Dp = observationMatrix[binAbsoluteIndex][(config->getSignalBitLength()+1)*i];
            ffast_complex Dpq = observationMatrix[binAbsoluteIndex][(config->getSignalBitLength()+1)*i+q+1];
            bool sgn1 = std::real(Dp) > 0;
            bool sgn2 = std::real(Dpq) > 0;
            bool sgn = sgn1 ^ sgn2;
            runningSum+= 2*sgn - 1;            
        }
        if (runningSum >=0)
            tempLoc += 1<<(config->getSignalBitLength() - 1- q);
    }
    location = tempLoc;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
xorl %ebp, %ebp
movl $0x0, 0xc(%rsp)
movq 0x10(%rbx), %rdi
callq 0x6700
cmpl %eax, %ebp
jge 0x4dc7
xorl %r12d, %r12d
xorl %r13d, %r13d
movq 0x10(%rbx), %rdi
callq 0x67dc
cmpl %eax, %r13d
jge 0x4da3
movq 0x10(%rbx), %rdi
movq 0x18(%rbx), %rax
movslq 0x58(%rbx), %rcx
movq (%rax,%rcx,8), %r14
callq 0x6700
incl %eax
imull %r13d, %eax
cltq
shlq $0x4, %rax
movq 0x10(%rbx), %rdi
movq 0x18(%rbx), %rcx
movslq 0x58(%rbx), %rdx
movq (%rcx,%rdx,8), %r15
movsd (%r14,%rax), %xmm0
movapd %xmm0, 0x10(%rsp)
callq 0x6700
incl %eax
imull %r13d, %eax
addl %ebp, %eax
cltq
shlq $0x4, %rax
xorpd %xmm0, %xmm0
cmpltpd 0x10(%rsp), %xmm0
movsd 0x10(%r15,%rax), %xmm1
xorpd %xmm2, %xmm2
cmpltpd %xmm1, %xmm2
xorpd %xmm0, %xmm2
movd %xmm2, %eax
notl %eax
orl $0x1, %eax
addl %eax, %r12d
incl %r13d
jmp 0x4d0e
testl %r12d, %r12d
js 0x4dc0
movq 0x10(%rbx), %rdi
callq 0x6700
movl %ebp, %ecx
notl %ecx
addl %eax, %ecx
pushq $0x1
popq %rax
shll %cl, %eax
addl %eax, 0xc(%rsp)
incl %ebp
jmp 0x4cf7
movl 0xc(%rsp), %eax
movl %eax, 0x38(%rbx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/UCBASiCS[P]SPRIGHT/src/binprocessor.cpp
// Function: BinProcessor::estimateBinSignal()
void BinProcessor::estimateBinSignal()
{
    int delayIndex = 0;
    amplitude      = 0;

    for(auto delayIterator=delays.begin(); delayIterator != delays.end(); ++delayIterator)
    {
        directionVector[delayIndex] = (numOnes(*delayIterator & location) % 2) ? -1 : 1;
        amplitude += directionVector[delayIndex] * observationMatrix[binAbsoluteIndex][delayIndex];
        delayIndex++;
    }

    // average the found amplitudes
    amplitude /= delaysNb;

    noise = 0;

    for (int delayIndex=0; delayIndex<delaysNb; delayIndex++)
    {
        // compute the bin signal that would result from a tone with such amplitude and location
        signalVector[delayIndex] = amplitude*directionVector[delayIndex];
        // the residual between the actual bin measurement and the computed one is the noise
        noise += std::norm(observationMatrix[binAbsoluteIndex][delayIndex]-signalVector[delayIndex]);
    } 
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x40(%rdi), %r14
xorpd %xmm0, %xmm0
movupd %xmm0, 0x40(%rdi)
movq 0x88(%rdi), %r15
xorl %r12d, %r12d
cmpq 0x90(%rbx), %r15
je 0x4e75
movl 0x38(%rbx), %eax
andl (%r15), %eax
movl %eax, %ecx
shrl $0x10, %ecx
xorl %eax, %ecx
xorl %eax, %eax
xorb %ch, %cl
setp %al
leal -0x1(,%rax,2), %eax
cvtsi2sd %eax, %xmm0
movq 0x80(%rbx), %rax
movsd %xmm0, (%rax,%r12)
andq $0x0, 0x8(%rax,%r12)
movq 0x80(%rbx), %rdi
addq %r12, %rdi
movq 0x18(%rbx), %rax
movslq 0x58(%rbx), %rcx
movq (%rax,%rcx,8), %rsi
addq %r12, %rsi
callq 0x50aa
movupd 0x40(%rbx), %xmm2
unpcklpd %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
addpd %xmm2, %xmm0
movupd %xmm0, 0x40(%rbx)
addq $0x4, %r15
addq $0x10, %r12
jmp 0x4e00
movl 0x24(%rbx), %eax
cvtsi2sd %eax, %xmm1
unpcklpd %xmm1, %xmm1            # xmm1 = xmm1[0,0]
divpd %xmm1, %xmm0
movupd %xmm0, 0x40(%rbx)
andq $0x0, 0x70(%rbx)
xorl %r15d, %r15d
xorl %r12d, %r12d
cltq
cmpq %rax, %r12
jge 0x4f0a
movq 0x80(%rbx), %rsi
addq %r15, %rsi
movq %r14, %rdi
callq 0x50aa
movq 0x50(%rbx), %rax
movsd %xmm0, (%rax,%r15)
movsd %xmm1, 0x8(%rax,%r15)
movq 0x18(%rbx), %rax
movslq 0x58(%rbx), %rcx
movq (%rax,%rcx,8), %rax
movq 0x50(%rbx), %rcx
movsd (%rax,%r15), %xmm0
subsd (%rcx,%r15), %xmm0
movsd 0x8(%rax,%r15), %xmm1
subsd 0x8(%rcx,%r15), %xmm1
mulsd %xmm1, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
addsd 0x70(%rbx), %xmm0
movsd %xmm0, 0x70(%rbx)
incq %r12
movl 0x24(%rbx), %eax
addq $0x10, %r15
jmp 0x4e94
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/UCBASiCS[P]SPRIGHT/src/binprocessor.cpp
// Function: BinProcessor::adjustTo(int, int, int)
void BinProcessor::adjustTo(int newBinAbsoluteIndex, int newBinRelativeIndex, int newStage)
{
    binAbsoluteIndex = newBinAbsoluteIndex;
    binRelativeIndex = newBinRelativeIndex;
    stage   = newStage;
    samplingPattern = config->getSamplingPattern(stage);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl %esi, 0x58(%rdi)
movl %edx, 0x5c(%rdi)
movl %ecx, 0x60(%rdi)
movq 0x10(%rdi), %rdi
movl %ecx, %esi
callq 0x6724
movl %eax, 0x64(%rbx)
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/UCBASiCS[P]SPRIGHT/src/binprocessor.cpp
// Function: BinProcessor::isSingleton()
bool BinProcessor::isSingleton()
{
    // a singleton is not zero-ton
    if (isZeroTon())
    {
        return false;
    }
    process();
    
    // if the bin is a singleton, when we peel the frequency from the bin
    // the remaining power should be coming from noise only
    // also we need the singleton to have energy larger than a threshold (minimumEnergy)

    if (noise / delaysNb <= thresholds[stage] && config->getDelaysNb()*std::norm(amplitude) > minimumEnergy)
    {
        // The bin is a singleton
        return true;
    }

    // The bin is a 'multi-ton'
    return false;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x4fa0
testb %al, %al
jne 0x4f9b
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
movsd 0x70(%rbx), %xmm0
cvtsi2sdl 0x24(%rbx), %xmm1
divsd %xmm1, %xmm0
movq 0x78(%rbx), %rax
movslq 0x60(%rbx), %rcx
movsd (%rax,%rcx,8), %xmm1
ucomisd %xmm0, %xmm1
jb 0x4f9b
movq 0x10(%rbx), %rdi
callq 0x67d8
cvtsi2sd %eax, %xmm0
movsd 0x40(%rbx), %xmm1
movsd 0x48(%rbx), %xmm2
mulsd %xmm2, %xmm2
mulsd %xmm1, %xmm1
addsd %xmm2, %xmm1
mulsd %xmm0, %xmm1
movb $0x1, %al
ucomisd 0x30(%rbx), %xmm1
ja 0x4f9d
xorl %eax, %eax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/UCBASiCS[P]SPRIGHT/src/binprocessor.cpp
// Function: BinProcessor::isZeroTon() const
bool BinProcessor::isZeroTon() const
{
    ffast_real energy = 0;

    for (int delayIndex=0; delayIndex<delaysNb; delayIndex++)
    {
        energy += std::norm(observationMatrix[binAbsoluteIndex][delayIndex]);
    }
    if (energy <= thresholds[stage])
    {
        return true;
    }

    return false;
}

// Assembly:
movl 0x24(%rdi), %eax
movq 0x18(%rdi), %rcx
movslq 0x58(%rdi), %rdx
xorl %esi, %esi
testl %eax, %eax
cmovlel %esi, %eax
shlq $0x4, %rax
xorpd %xmm0, %xmm0
cmpq %rsi, %rax
je 0x4fe6
movq (%rcx,%rdx,8), %r8
movsd (%r8,%rsi), %xmm1
movsd 0x8(%r8,%rsi), %xmm2
mulsd %xmm2, %xmm2
mulsd %xmm1, %xmm1
addsd %xmm2, %xmm1
addsd %xmm1, %xmm0
addq $0x10, %rsi
jmp 0x4fba
movq 0x78(%rdi), %rax
movslq 0x60(%rdi), %rcx
movsd (%rax,%rcx,8), %xmm1
ucomisd %xmm0, %xmm1
setae %al
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/UCBASiCS[P]SPRIGHT/include/utils.h
// Function: mapToInt(int, int, int, int)
inline int mapToInt(int shorter, int lenS, int longer, int lenL) {
    int shortCounter = 0;
    int ret = 0;
    for (int longCounter =0; longCounter < lenL; longCounter++) {
        if (longer & (1 << longCounter))
            if (shorter & (1 << shortCounter++))
                ret += (1 << longCounter);
    }
    return ret;
}

// Assembly:
movl %ecx, %esi
xorl %r8d, %r8d
testl %ecx, %ecx
cmovlel %r8d, %esi
pushq $0x1
popq %r9
xorl %r10d, %r10d
xorl %eax, %eax
xorl %ecx, %ecx
cmpl %ecx, %esi
je 0x50a9
movl %r9d, %r11d
shll %cl, %r11d
btl %ecx, %edx
jae 0x50a5
btl %r10d, %edi
leal 0x1(%r10), %r10d
cmovael %r8d, %r11d
addl %r11d, %eax
incl %ecx
jmp 0x5087
retq
// File: /workspace/github_cpp_makefile_star2_O2/UCBASiCS[P]SPRIGHT/src/chrono.cpp
// Function: Chrono::average(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
double Chrono::average(const std::string& section)
{
    if (notEmpty(section))
    {
        double sum = 0;
        unsigned int timesNb = getSectionStopTimes(section).size();

        for (unsigned int i=0; i<timesNb; i++)
        {

	    sum += getSectionTime(section, i);
        }

        return sum/timesNb;
    }

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x57de
xorpd %xmm1, %xmm1
testb %al, %al
je 0x58b7
leaq 0x40(%r14), %rdi
movq %rbx, %rsi
callq 0x5902
movq 0x8(%rax), %r15
subq (%rax), %r15
shrq $0x3, %r15
xorl %ebp, %ebp
xorpd %xmm1, %xmm1
cmpl %ebp, %r15d
je 0x58ab
movq %r14, %rdi
movq %rbx, %rsi
movl %ebp, %edx
movsd %xmm1, (%rsp)
callq 0x57f0
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
incl %ebp
jmp 0x5887
movl %r15d, %eax
cvtsi2sd %rax, %xmm0
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/UCBASiCS[P]SPRIGHT/src/config.cpp
// Function: Config::Config(int, char**)
Config::Config(int newArgc, char** newArgv):argc(newArgc), argv(newArgv), helpDisplayed(false)
{
    bins.clear();
    setDefaultOptions();

    setOptionsFromCommandLine();

    if(distribution.size() == 0)
    {
      preprocessDistribution((char*) "1");
    }

    setBinOffsetsAndBinsSum();
    setSubsamplingMatrices();

    maxSNRdB = (maxSNRdB < SNRdB) ? SNRdB : maxSNRdB;


    chainsNb = (chainsNb >= 1) ? chainsNb : 1;
    if (!noisy)
      chainsNb = 1;

    delaysPerBunchNb = getSignalBitLength()+1;
    delaysNb = chainsNb * delaysPerBunchNb;
    


   assert( signalLength >= signalSparsity );
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movl %esi, (%rdi)
movq %rdx, 0x8(%rdi)
movb $0x0, 0x11(%rdi)
leaq 0x28(%rdi), %r14
leaq 0x78(%rdi), %r15
xorps %xmm0, %xmm0
movups %xmm0, 0x78(%rdi)
andq $0x0, 0x88(%rdi)
leaq 0xb8(%rdi), %r12
andq $0x0, 0xc8(%rdi)
movups %xmm0, 0xb8(%rdi)
movups %xmm0, 0x28(%rdi)
movups %xmm0, 0x38(%rdi)
movups %xmm0, 0x48(%rdi)
callq 0x5f12
movq %rbx, %rdi
callq 0x5fa8
movq 0x80(%rbx), %rax
cmpq 0x78(%rbx), %rax
jne 0x5e68
leaq 0x6384(%rip), %rsi      # 0xc1e4
movq %rbx, %rdi
callq 0x6154
movq %rbx, %rdi
callq 0x628c
movq %rbx, %rdi
callq 0x6576
movss 0x6c(%rbx), %xmm0
maxss 0x94(%rbx), %xmm0
movss %xmm0, 0x94(%rbx)
movl 0x18(%rbx), %eax
movl 0x60(%rbx), %ecx
cmpl $0x2, %ecx
pushq $0x1
popq %rdx
cmovll %edx, %ecx
cmpb $0x0, 0x68(%rbx)
cmovel %edx, %ecx
movl %ecx, 0x60(%rbx)
movl 0xb0(%rbx), %edx
incl %edx
movl %edx, 0x64(%rbx)
imull %ecx, %edx
movl %edx, 0x5c(%rbx)
cmpl 0x24(%rbx), %eax
jl 0x5ec6
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x6319(%rip), %rdi      # 0xc1e6
leaq 0x6331(%rip), %rsi      # 0xc205
leaq 0x6339(%rip), %rcx      # 0xc214
pushq $0x2d
popq %rdx
callq 0x3170
movq %rax, %r13
addq $0x40, %rbx
movq %r12, %rdi
callq 0x715e
movq %r15, %rdi
callq 0x40fc
movq %rbx, %rdi
callq 0x41c6
movq %r14, %rdi
callq 0x41c6
movq %r13, %rdi
callq 0x3490
// File: /workspace/github_cpp_makefile_star2_O2/UCBASiCS[P]SPRIGHT/src/config.cpp
// Function: Config::setDefaultOptions()
void Config::setDefaultOptions()
{
    outputFile = (char*) "sprightOutput.txt";
    
    signalLength = 64;
    signalLengthOriginal = signalLength;
    signalSparsityPeeling = 4;
    signalSparsity = 4;
    maximumLikelihood = false;
    countSamples = true;
    delaysPerBunchNb = getSignalBitLength() + 1;

    chainsNb = 1;

    /* for experiment mode */
    iterations = 1;
    experimentMode = true;
    // Phase = 0 implies phase of non-zero 
    // coefficients is uniformly random in [0,2*pi]. 
    phasesNb = 0; 
    displayIterationTime = false;
    noisy = false;
    SNRdB = 50;
    maxSNRdB = -std::numeric_limits<float>::infinity();
    verbose = false;
    reconstructSignalInBackEnd = false;
    defaultDelays = true;
    signalLogLength = log2(signalLength);

    bins.clear();
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x6314(%rip), %rax      # 0xc231
movq %rax, 0xa8(%rdi)
movl $0x40, 0x1c(%rdi)
movabsq $-0x7ffffffffffffc, %rax # imm = 0xFF80000000000004
movq %rax, 0x90(%rdi)
movl $0x4, 0x24(%rdi)
xorl %eax, %eax
movb %al, 0x20(%rdi)
movl 0xb0(%rdi), %ecx
incl %ecx
movl %ecx, 0x64(%rdi)
movl $0x1, 0x60(%rdi)
movabsq $0x4000000001, %rcx     # imm = 0x4000000001
movq %rcx, 0x14(%rdi)
movb $0x1, %cl
movb %cl, 0x10(%rdi)
movb %al, 0x68(%rdi)
movq $0x42480000, 0x6c(%rdi) # imm = 0x42480000
movl $0x1000000, 0x74(%rdi)  # imm = 0x1000000
movb %cl, 0x98(%rdi)
pushq $0x40
popq %rdi
callq 0x70a8
cvttsd2si %xmm0, %eax
movl %eax, 0xb0(%rbx)
movq 0x28(%rbx), %rax
cmpq %rax, 0x30(%rbx)
je 0x5fa5
movq %rax, 0x30(%rbx)
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/UCBASiCS[P]SPRIGHT/src/config.cpp
// Function: Config::preprocessDistribution(char*)
void Config::preprocessDistribution(char* newDistribution)
{
    std::vector<std::string> tempDistribution = split(newDistribution, ' ');

    distribution.clear();
    distribution.push_back(0);

    int l = tempDistribution.size()+1;

    for (int i = 1; i < l; ++i)
    {
       distribution.push_back(distribution[i-1]+atof(tempDistribution[i-1].c_str()));
   }

   for (int i = 1; i < l; ++i) 
   {
       distribution[i] = distribution[i]/distribution[l-1];
   }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r14
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x3fb6
leaq 0x10(%rsp), %rdi
leaq 0x28(%rsp), %rsi
pushq $0x20
popq %rdx
callq 0xb765
leaq 0x28(%rsp), %rdi
callq 0x30f0
leaq 0x78(%r14), %rbx
movq 0x78(%r14), %rax
cmpq %rax, 0x80(%r14)
je 0x61a8
movq %rax, 0x80(%r14)
leaq 0x28(%rsp), %rsi
andq $0x0, (%rsi)
movq %rbx, %rdi
callq 0x4598
movq 0x18(%rsp), %r15
subq 0x10(%rsp), %r15
shlq $0x1b, %r15
movabsq $0x100000000, %r12      # imm = 0x100000000
addq %r15, %r12
sarq $0x20, %r12
pushq $0x1
popq %r13
xorl %ebp, %ebp
leaq 0x28(%rsp), %r14
cmpq %r12, %r13
jge 0x6224
movq (%rbx), %rax
movsd (%rax,%rbp), %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x10(%rsp), %rax
movq (%rax,%rbp,4), %rdi
callq 0x32f0
addsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x28(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4598
incq %r13
addq $0x8, %rbp
jmp 0x61e3
movq (%rbx), %rax
sarq $0x1d, %r15
pushq $0x1
popq %rcx
cmpq %r12, %rcx
jge 0x6248
movsd (%rax,%rcx,8), %xmm0
divsd (%rax,%r15), %xmm0
movsd %xmm0, (%rax,%rcx,8)
incq %rcx
jmp 0x622e
leaq 0x10(%rsp), %rdi
callq 0x70d0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6277
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x30f0
jmp 0x6284
movq %rax, %rbx
jmp 0x6284
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x70d0
movq %rbx, %rdi
callq 0x3490
// File: /workspace/github_cpp_makefile_star2_O2/UCBASiCS[P]SPRIGHT/src/config.cpp
// Function: Config::setBins(char const*)
void Config::setBins(const char *newBins)
{
    bins.clear();
    // split: divides a string into multiple strings that are separated by space ' '.
    std::vector<std::string> tempBins = split(newBins, ' ');
    bins.clear();
    for(unsigned int stage=0; stage<tempBins.size(); stage++)
    {
        int value = atoi(tempBins[stage].c_str());
        bins.push_back(value);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq %rsi, 0x10(%rsp)
movq 0x28(%rdi), %rax
cmpq %rax, 0x30(%rdi)
je 0x6fef
movq %rax, 0x30(%rbx)
leaq 0x18(%rsp), %rdi
leaq 0x10(%rsp), %rsi
pushq $0x20
popq %rdx
callq 0xb7a2
movq 0x28(%rbx), %rax
cmpq %rax, 0x30(%rbx)
je 0x700f
movq %rax, 0x30(%rbx)
addq $0x28, %rbx
xorl %r15d, %r15d
leaq 0xc(%rsp), %r14
movl %r15d, %r15d
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
cmpq %r15, %rcx
jbe 0x7058
movq %r15, %rcx
shlq $0x5, %rcx
movq (%rax,%rcx), %rdi
callq 0x33e0
movl %eax, 0xc(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x70b2
incl %r15d
jmp 0x701b
leaq 0x18(%rsp), %rdi
callq 0x70d0
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x70d0
movq %rbx, %rdi
callq 0x3490
nop
// File: /workspace/github_cpp_makefile_star2_O2/UCBASiCS[P]SPRIGHT/src/customizedinput.cpp
// Function: CustomizedInput::process()
void CustomizedInput::process()
{
    chrono->start("Input");

    for (int k = 0; k < config->getSignalLength(); k++)
    {
	neededSamples.insert(k);
    }

    convertFileToTimeSignal();
    
    chrono->stop("Input");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %r14
leaq 0x5651(%rip), %rsi      # 0xcc4b
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x3fb6
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x56f4
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x30f0
leaq 0x50(%rbx), %r15
xorl %ebp, %ebp
movl %ebp, 0x8(%rsp)
movq 0x10(%rbx), %rdi
callq 0x6710
cmpl %eax, %ebp
jge 0x764d
movq %r15, %rdi
movq %r14, %rsi
callq 0x7afc
movl 0x8(%rsp), %ebp
incl %ebp
jmp 0x7629
movq %rbx, %rdi
callq 0x76b0
movq 0x8(%rbx), %rbx
leaq 0x55eb(%rip), %rsi      # 0xcc4b
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x3fb6
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x5758
leaq 0x8(%rsp), %rdi
callq 0x30f0
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7695
jmp 0x76a4
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x30f0
jmp 0x76a7
movq %rax, %rbx
movq %rbx, %rdi
callq 0x3490
nop
// File: /workspace/github_cpp_makefile_star2_O2/UCBASiCS[P]SPRIGHT/src/customizedinput.cpp
// Function: CustomizedInput::process(std::vector<int, std::allocator<int>>)
void CustomizedInput::process(std::vector<int> delays)
{
    chrono->start("Input");

    findNeededSamples(delays);
    convertFileToTimeSignal();

    chrono->stop("Input");
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rdi), %r15
leaq 0x53d5(%rip), %rsi      # 0xcc4b
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x3fb6
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x56f4
leaq 0x8(%rsp), %rdi
callq 0x30f0
leaq 0x28(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x5024
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7932
leaq 0x28(%rsp), %rdi
callq 0x41c6
movq %rbx, %rdi
callq 0x76b0
movq 0x8(%rbx), %rbx
leaq 0x5377(%rip), %rsi      # 0xcc4b
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x3fb6
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x5758
leaq 0x8(%rsp), %rdi
callq 0x30f0
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x7917
jmp 0x7926
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x41c6
jmp 0x7929
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x30f0
jmp 0x7929
movq %rax, %rbx
movq %rbx, %rdi
callq 0x3490
nop
// File: /workspace/github_cpp_makefile_star2_O2/UCBASiCS[P]SPRIGHT/src/customizedinput.cpp
// Function: CustomizedInput::findNeededSamples(std::vector<int, std::allocator<int>>)
void CustomizedInput::findNeededSamples(std::vector<int> delays)
{

    int signalBitLength = config->getSignalBitLength();
    for (int c = 0; c < config->getBinsNb(); c++)
    {
        int binIndices = config->getSamplingPattern(c);

        int b = config->getBinNumIndices(c);
        int B = pow(2,b); // number of bins in stage

        for (int delayIndex = 0; delayIndex < config->getDelaysNb(); delayIndex++)
        {
            int currDelay = delays[delayIndex];

            std::vector<ffast_complex> binTimeDomain = std::vector<ffast_complex>(B);
            for (int bin_iter = 0; bin_iter < B; bin_iter++)
            {
                int mlInt = mapToInt(bin_iter, b, binIndices, signalBitLength);
                int signalIndex = currDelay ^ mlInt;

                neededSamples.insert(signalIndex);
            }
        }     
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, 0x18(%rsp)
movq %rdi, %r14
movq 0x10(%rdi), %rdi
callq 0x6700
movl %eax, 0x4(%rsp)
leaq 0x50(%r14), %r15
xorl %r12d, %r12d
movq %r14, 0x10(%rsp)
movq 0x10(%r14), %rdi
callq 0x67ca
cmpl %eax, %r12d
jge 0x7a43
movq 0x10(%r14), %rdi
movl %r12d, %esi
callq 0x6724
movl %eax, %ebx
movq 0x10(%r14), %rdi
movq %r12, 0x8(%rsp)
movl %r12d, %esi
callq 0x677c
movl %eax, %r13d
movsd 0x474b(%rip), %xmm0     # 0xc0e8
movl %eax, %edi
callq 0x33c0
cvttsd2si %xmm0, %eax
cltq
testl %eax, %eax
movl $0x0, %r12d
movq %rax, 0x20(%rsp)
cmovgl %eax, %r12d
xorl %ebp, %ebp
movq 0x10(%r14), %rdi
callq 0x67d8
cltq
cmpq %rax, %rbp
jge 0x7a36
movq 0x18(%rsp), %rax
movq (%rax), %rax
movq %rbp, 0x28(%rsp)
movl (%rax,%rbp,4), %ebp
leaq 0x30(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq %rsp, %rdx
callq 0x7aaa
xorl %r14d, %r14d
cmpl %r14d, %r12d
je 0x7a1d
movl %r14d, %edi
movl %r13d, %esi
movl %ebx, %edx
movl 0x4(%rsp), %ecx
callq 0x5071
xorl %ebp, %eax
movl %eax, (%rsp)
movq %r15, %rdi
movq %rsp, %rsi
callq 0x7afc
incl %r14d
jmp 0x79f2
leaq 0x30(%rsp), %rdi
callq 0x7dbc
movq 0x28(%rsp), %rbp
incq %rbp
movq 0x10(%rsp), %r14
jmp 0x79bd
movq 0x8(%rsp), %r12
incl %r12d
jmp 0x7961
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x7dbc
movq %rbx, %rdi
callq 0x3490
nop
// File: /workspace/github_cpp_makefile_star2_O2/UCBASiCS[P]SPRIGHT/src/customizedoutput.cpp
// Function: CustomizedOutput::process()
void CustomizedOutput::process()
{
    chrono->start("Output");

    std::unordered_map<int,ffast_complex> decodedFrequencies;

    decodedFrequencies = backEnd->getDecodedFrequencies();

    std::ofstream myfile (config->getOutputFile());
    if (myfile.is_open())
    {
        myfile.precision(15);
        for (auto i = decodedFrequencies.cbegin(); i != decodedFrequencies.cend(); ++i)
            myfile << i->first << ":" << i->second << std::endl;
        myfile.close();
    }

    chrono->stop("Output");
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movq %rdi, %rbx
movq 0x8(%rdi), %r14
leaq 0x4e25(%rip), %rsi      # 0xccc3
leaq 0x68(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x3fb6
leaq 0x68(%rsp), %rsi
movq %r14, %rdi
callq 0x56f4
leaq 0x68(%rsp), %rdi
callq 0x30f0
leaq 0x60(%rsp), %rax
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movups %xmm0, -0x8(%rax)
movq 0x18(%rbx), %rdi
callq 0x3edc
leaq 0x30(%rsp), %rdi
movq %rax, %rsi
callq 0x8054
movq 0x10(%rbx), %rdi
callq 0x70a0
leaq 0x68(%rsp), %rdi
pushq $0x10
popq %rdx
movq %rax, %rsi
callq 0x3290
leaq 0xd8(%rsp), %rdi
callq 0x3070
testb %al, %al
je 0x7f8a
leaq 0x40(%rsp), %r12
leaq 0x68(%rsp), %r14
movq (%r14), %rax
movq -0x18(%rax), %rax
movq $0xf, 0x70(%rsp,%rax)
leaq 0x4d01(%rip), %r15      # 0xcc49
movq (%r12), %r12
testq %r12, %r12
je 0x7f80
movl 0x8(%r12), %esi
movq %r14, %rdi
callq 0x3470
movq %rax, %rdi
movq %r15, %rsi
callq 0x3250
leaq 0x10(%r12), %rsi
movq %rax, %rdi
callq 0x32c0
movq %rax, %rdi
callq 0x3110
jmp 0x7f48
leaq 0x68(%rsp), %rdi
callq 0x3360
movq 0x8(%rbx), %rbx
leaq 0x4d2e(%rip), %rsi      # 0xccc3
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x3fb6
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x5758
leaq 0x10(%rsp), %rdi
callq 0x30f0
leaq 0x68(%rsp), %rdi
callq 0x33a0
leaq 0x30(%rsp), %rdi
callq 0x4054
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x800c
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x30f0
jmp 0x800f
jmp 0x800c
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x30f0
jmp 0x8023
movq %rax, %rbx
jmp 0x8023
jmp 0x8007
movq %rax, %rbx
jmp 0x8019
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x33a0
leaq 0x30(%rsp), %rdi
callq 0x4054
movq %rbx, %rdi
callq 0x3490
nop
// File: /workspace/github_cpp_makefile_star2_O2/UCBASiCS[P]SPRIGHT/src/experimentinput.cpp
// Function: ExperimentInput::ExperimentInput(Chrono*, Config const*)
ExperimentInput::ExperimentInput(Chrono* newChrono, const Config* newConfig): Input(newChrono, newConfig)
{
    // set the signal amplitudes to 1 and change
    // the noise variance to account for SNR
    signalMagnitude = 1;
    noiseStdDeviation = pow(10,-config->getSNRdB()/20);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0xb31c
leaq 0xb979(%rip), %rax      # 0x13c58
movq %rax, (%rbx)
leaq 0x48(%rbx), %rax
movq %rax, 0x18(%rbx)
pushq $0x1
popq %rax
movq %rax, 0x20(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rbx)
movl $0x3f800000, %ecx       # imm = 0x3F800000
movl %ecx, 0x38(%rbx)
movups %xmm0, 0x40(%rbx)
leaq 0x58(%rbx), %rdx
andl $0x0, 0x58(%rbx)
andq $0x0, 0x60(%rbx)
movq %rdx, 0x68(%rbx)
movq %rdx, 0x70(%rbx)
andq $0x0, 0x78(%rbx)
leaq 0x18(%rbx), %r14
leaq 0x88(%rbx), %r15
leaq 0xb8(%rbx), %rdx
movq %rdx, 0x88(%rbx)
movq %rax, 0x90(%rbx)
movups %xmm0, 0x98(%rbx)
movl %ecx, 0xa8(%rbx)
movups %xmm0, 0xb0(%rbx)
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, 0xc0(%rbx)
movq 0x10(%rbx), %rdi
callq 0x67e8
divss 0x4980(%rip), %xmm0     # 0xccf4
cvtss2sd %xmm0, %xmm1
movsd 0x3d30(%rip), %xmm0     # 0xc0b0
callq 0x3480
movsd %xmm0, 0xd0(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r12
addq $0x50, %rbx
movq %r15, %rdi
callq 0x4054
movq %rbx, %rdi
callq 0x3ffc
movq %r14, %rdi
callq 0x4054
movq %r12, %rdi
callq 0x3490
// File: /workspace/github_cpp_makefile_star2_O2/UCBASiCS[P]SPRIGHT/src/experimentinput.cpp
// Function: ExperimentInput::process()
void ExperimentInput::process()
{
    chrono->start("Input");
    neededSamples.clear();
    for (int k = 0; k < config->getSignalLength(); k++)
    {
	   neededSamples.insert(k);
    }

    nonZeroFrequencies.clear();
    generateNonZeroFrequencies();

    for (auto t = neededSamples.cbegin(); t != neededSamples.cend(); ++t) {
        timeSignal[*t] =0;
    }
    
    frequencyToTime();
    
    if (config->isNoisy())
    {
        addNoise();
    }
    
    for (auto t = neededSamples.cbegin(); t != neededSamples.cend(); ++t)
    {
        timeSignal[*t] /= sqrt((ffast_complex)config->getSignalLengthOriginal());
    }
    chrono->stop("Input");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %r14
leaq 0x4827(%rip), %rsi      # 0xcc4b
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x3fb6
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x56f4
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x30f0
leaq 0x50(%rbx), %r15
movq %r15, %rdi
callq 0x8e36
xorl %ebp, %ebp
movl %ebp, 0x8(%rsp)
movq 0x10(%rbx), %rdi
callq 0x6710
cmpl %eax, %ebp
jge 0x847f
movq %r15, %rdi
movq %r14, %rsi
callq 0x7afc
movl 0x8(%rsp), %ebp
incl %ebp
jmp 0x845b
leaq 0x88(%rbx), %rdi
callq 0x4070
movq %rbx, %rdi
callq 0x85a4
movq 0x68(%rbx), %r15
leaq 0x58(%rbx), %rbp
leaq 0x18(%rbx), %r14
cmpq %rbp, %r15
je 0x84c5
leaq 0x20(%r15), %rsi
movq %r14, %rdi
callq 0x7cbe
xorpd %xmm0, %xmm0
movupd %xmm0, (%rax)
movq %r15, %rdi
callq 0x32b0
movq %rax, %r15
jmp 0x849f
movq %rbx, %rdi
callq 0x8750
movq 0x10(%rbx), %rdi
callq 0x67e4
testb %al, %al
je 0x84e2
movq %rbx, %rdi
callq 0x880e
movq 0x68(%rbx), %r13
leaq 0x28(%rsp), %r15
leaq 0x8(%rsp), %r12
cmpq %rbp, %r13
je 0x8546
movq 0x10(%rbx), %rdi
callq 0x7094
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x28(%rsp)
andq $0x0, 0x30(%rsp)
movq %r15, %rdi
callq 0x8dfd
movsd %xmm0, 0x8(%rsp)
movsd %xmm1, 0x10(%rsp)
leaq 0x20(%r13), %rsi
movq %r14, %rdi
callq 0x7cbe
movq %rax, %rdi
movq %r12, %rsi
callq 0x8e0c
movq %r13, %rdi
callq 0x32b0
movq %rax, %r13
jmp 0x84f0
movq 0x8(%rbx), %rbx
leaq 0x46fa(%rip), %rsi      # 0xcc4b
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x3fb6
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x5758
leaq 0x8(%rsp), %rdi
callq 0x30f0
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x858a
jmp 0x8599
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x30f0
jmp 0x859c
movq %rax, %rbx
movq %rbx, %rdi
callq 0x3490
// File: /workspace/github_cpp_makefile_star2_O2/UCBASiCS[P]SPRIGHT/src/experimentinput.cpp
// Function: ExperimentInput::frequencyToTime()
void ExperimentInput::frequencyToTime()
{
    // go through the required sample indices
    for (auto t = neededSamples.cbegin(); t != neededSamples.cend(); ++t)
    {
        timeSignal[*t] = 0;
    	// go through the non-zero frequency components
        for (auto f = nonZeroFrequencies.cbegin(); f != nonZeroFrequencies.cend(); ++f)
        {
            timeSignal[*t] += f->second * (numOnes(*t & f->first) % 2 ? -1.0 : 1.0);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r13
movq 0x68(%rdi), %r15
leaq 0x58(%rdi), %rax
movq %rax, 0x8(%rsp)
leaq 0x18(%rdi), %r14
addq $0x98, %r13
leaq 0x3890(%rip), %rbp      # 0xc010
cmpq 0x8(%rsp), %r15
je 0x87ff
leaq 0x20(%r15), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x7cbe
xorpd %xmm0, %xmm0
movupd %xmm0, (%rax)
movq %r13, %rbx
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x87f2
movl 0x8(%rbx), %eax
andl (%r12), %eax
movl %eax, %ecx
shrl $0x10, %ecx
xorl %eax, %ecx
xorl %eax, %eax
xorb %ch, %cl
setp %al
movupd 0x10(%rbx), %xmm0
movsd (%rbp,%rax,8), %xmm1
unpcklpd %xmm1, %xmm1            # xmm1 = xmm1[0,0]
mulpd %xmm0, %xmm1
movapd %xmm1, 0x10(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x7cbe
movupd (%rax), %xmm0
addpd 0x10(%rsp), %xmm0
movupd %xmm0, (%rax)
jmp 0x87a1
movq %r15, %rdi
callq 0x32b0
movq %rax, %r15
jmp 0x8780
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/UCBASiCS[P]SPRIGHT/src/experimentinput.cpp
// Function: ExperimentInput::addNoise()
void ExperimentInput::addNoise()
{
    ffast_real signalPower = signalMagnitude * signalMagnitude;
    ffast_real noisePower = 0;
    ffast_real noiseNormFactor;
    ffast_real noisePhase;

    for (auto t = neededSamples.cbegin(); t != neededSamples.cend(); ++t)
    {
        noiseNormFactor = (ffast_real) -2*log(drand48());
        noisePhase = (ffast_real) 2*M_PI*drand48();
        noisePower += noiseNormFactor; // Standard deviation added later.
        timeSignal[*t] += std::polar( noiseStdDeviation * ((ffast_real) sqrt( (double) noiseNormFactor ) ) / sqrt(2) , noisePhase );
    }

    noisePower *= noiseStdDeviation * noiseStdDeviation;
    realSNR = signalPower * config->getSignalLength()/noisePower;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movsd 0xc0(%rdi), %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x68(%rdi), %r15
leaq 0x58(%rdi), %r12
leaq 0x18(%rdi), %r14
xorpd %xmm0, %xmm0
movsd %xmm0, (%rsp)
cmpq %r12, %r15
je 0x8931
callq 0x3230
callq 0x31e0
mulsd 0x449e(%rip), %xmm0     # 0xccf8
movsd %xmm0, 0x10(%rsp)
callq 0x3230
movsd 0x10(%rsp), %xmm1
mulsd 0x448d(%rip), %xmm0     # 0xcd00
movsd %xmm0, 0x20(%rsp)
movsd 0xd0(%rbx), %xmm0
movaps %xmm0, 0x30(%rsp)
ucomisd 0x4482(%rip), %xmm1     # 0xcd10
jb 0x8896
sqrtsd %xmm1, %xmm0
jmp 0x88a5
movapd %xmm1, %xmm0
callq 0x31d0
movsd 0x10(%rsp), %xmm1
movapd 0x30(%rsp), %xmm2
mulsd %xmm0, %xmm2
movsd (%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rsp)
divsd 0x4443(%rip), %xmm2     # 0xcd08
movapd %xmm2, 0x30(%rsp)
movsd 0x20(%rsp), %xmm0
callq 0x34e0
movaps %xmm0, 0x10(%rsp)
movsd 0x20(%rsp), %xmm0
callq 0x3060
movaps %xmm0, 0x20(%rsp)
leaq 0x20(%r15), %rsi
movq %r14, %rdi
callq 0x7cbe
movapd 0x10(%rsp), %xmm1
unpcklpd 0x20(%rsp), %xmm1       # xmm1 = xmm1[0],mem[0]
movapd 0x30(%rsp), %xmm0
unpcklpd %xmm0, %xmm0            # xmm0 = xmm0[0,0]
mulpd %xmm1, %xmm0
movapd %xmm0, %xmm1
movupd (%rax), %xmm0
addpd %xmm1, %xmm0
movupd %xmm0, (%rax)
movq %r15, %rdi
callq 0x32b0
movq %rax, %r15
jmp 0x883f
movsd 0x8(%rsp), %xmm0
mulsd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
movsd 0xd0(%rbx), %xmm0
mulsd %xmm0, %xmm0
movsd (%rsp), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq 0x10(%rbx), %rdi
callq 0x6710
cvtsi2sd %eax, %xmm0
mulsd 0x8(%rsp), %xmm0
divsd (%rsp), %xmm0
movsd %xmm0, 0xc8(%rbx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/UCBASiCS[P]SPRIGHT/src/experimentinput.cpp
// Function: ExperimentInput::process(std::vector<int, std::allocator<int>>)
void ExperimentInput::process(std::vector<int> delays)
{

    chrono->start("Input");
    findNeededSamples(delays);

    generateNonZeroFrequencies();
    

    // frequencyToTimeUsingFFT(delays);
    frequencyToTime();
        

    if (config->isNoisy())
    {
        addNoise();
    }

    for (auto t = neededSamples.cbegin(); t != neededSamples.cend(); ++t)
    {
        timeSignal[*t] /= sqrt((ffast_complex)config->getSignalLengthOriginal());
    }


    
    chrono->stop("Input");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rdi), %r15
leaq 0x42a4(%rip), %rsi      # 0xcc4b
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x3fb6
movq %rsp, %rsi
movq %r15, %rdi
callq 0x56f4
movq %rsp, %rdi
callq 0x30f0
leaq 0x30(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x5024
movq %rbx, %rdi
movq %r15, %rsi
callq 0x8ae0
leaq 0x30(%rsp), %rdi
callq 0x41c6
movq %rbx, %rdi
callq 0x85a4
movq %rbx, %rdi
callq 0x8750
movq 0x10(%rbx), %rdi
callq 0x67e4
testb %al, %al
je 0x8a11
movq %rbx, %rdi
callq 0x880e
movq 0x68(%rbx), %r12
leaq 0x58(%rbx), %rbp
leaq 0x18(%rbx), %r14
leaq 0x20(%rsp), %r15
movq %rsp, %r13
cmpq %rbp, %r12
je 0x8a7b
movq 0x10(%rbx), %rdi
callq 0x7094
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x20(%rsp)
andq $0x0, 0x28(%rsp)
movq %r15, %rdi
callq 0x8dfd
movsd %xmm0, (%rsp)
movsd %xmm1, 0x8(%rsp)
leaq 0x20(%r12), %rsi
movq %r14, %rdi
callq 0x7cbe
movq %rax, %rdi
movq %r13, %rsi
callq 0x8e0c
movq %r12, %rdi
callq 0x32b0
movq %rax, %r12
jmp 0x8a25
movq 0x8(%rbx), %rbx
leaq 0x41c5(%rip), %rsi      # 0xcc4b
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x3fb6
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x5758
movq %rsp, %rdi
callq 0x30f0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8ac8
jmp 0x8ad5
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x41c6
jmp 0x8ad8
movq %rax, %rbx
movq %rsp, %rdi
callq 0x30f0
jmp 0x8ad8
movq %rax, %rbx
movq %rbx, %rdi
callq 0x3490