// File: /workspace/github_cpp_makefile_star2_O3/UCBASiCS[P]SPRIGHT/src/customizedinput.cpp
// Function: CustomizedInput::convertFileToTimeSignal()
void CustomizedInput::convertFileToTimeSignal()
{
    std::string line;
    std::ifstream file(config->getInputFile());
    ffast_complex temp;

    for(int i=0; i < config->getSignalLength(); i++) {
        if(neededSamples.count(i) > 0 && getline(file,line)) {
            (std::istringstream) line >> temp;
            timeSignal[i] = temp;
        }
        else if (neededSamples.count(i) == 0 && file.ignore(256,'\n'))
        {}
        else {
            std::cerr << "Error while reading input" << std::endl;
            exit(EXIT_FAILURE);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3c8, %rsp            # imm = 0x3C8
movq %rdi, %rbx
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x10(%rdi), %rdi
callq 0x8120
leaq 0x1c0(%rsp), %r14
movq %r14, %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0x34c0
xorps %xmm0, %xmm0
leaq 0x30(%rsp), %rax
movaps %xmm0, (%rax)
leaq 0x58(%rbx), %r12
leaq 0x18(%rbx), %rax
movq %rax, 0x8(%rsp)
xorl %r13d, %r13d
leaq 0x10(%rsp), %rbp
leaq 0x40(%rsp), %r15
movl %r13d, 0x4(%rsp)
movq 0x10(%rbx), %rdi
callq 0x6c28
cmpl %eax, %r13d
jge 0x88e0
movq 0x60(%rbx), %rax
testq %rax, %rax
je 0x885d
movl 0x4(%rsp), %ecx
movq %rax, %rsi
movq %r12, %rdx
xorl %edi, %edi
cmpl %ecx, 0x20(%rsi)
setl %dil
cmovgeq %rsi, %rdx
movq 0x10(%rsi,%rdi,8), %rsi
testq %rsi, %rsi
jne 0x87d2
cmpq %r12, %rdx
je 0x882c
cmpl 0x20(%rdx), %ecx
jl 0x882c
movq 0x1c0(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3250
movsbl %al, %edx
movq %r14, %rdi
movq %rbp, %rsi
callq 0x34d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
je 0x888e
movq 0x60(%rbx), %rax
testq %rax, %rax
je 0x885d
movl 0x4(%rsp), %ecx
movq %r12, %rdx
xorl %esi, %esi
cmpl %ecx, 0x20(%rax)
setl %sil
cmovgeq %rax, %rdx
movq 0x10(%rax,%rsi,8), %rax
testq %rax, %rax
jne 0x8838
cmpq %r12, %rdx
je 0x885d
cmpl 0x20(%rdx), %ecx
jge 0x891b
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdi
movl $0xa, %edx
callq 0x3150
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x891b
movl 0x4(%rsp), %r13d
incl %r13d
jmp 0x87a4
movq %r15, %rdi
movq %rbp, %rsi
movl $0x8, %edx
callq 0x3450
movq %r15, %rdi
leaq 0x30(%rsp), %rsi
callq 0x3380
movq %r15, %rdi
movq 0xc70b(%rip), %rsi      # 0x14fc0
callq 0x3360
leaq 0xb8(%rsp), %rdi
callq 0x30b0
movq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x8e1a
movaps 0x30(%rsp), %xmm0
movups %xmm0, (%rax)
jmp 0x8881
leaq 0x1c0(%rsp), %rdi
callq 0x3080
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x8909
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3270
addq $0x3c8, %rsp            # imm = 0x3C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xc6c6(%rip), %rdi      # 0x14fe8
leaq 0x6328(%rip), %rsi      # 0xec51
movl $0x19, %edx
callq 0x32b0
movq 0xc6ae(%rip), %rdi      # 0x14fe8
callq 0x3100
movl $0x1, %edi
callq 0x32f0
movq %rax, %rbx
jmp 0x8985
movq %rax, %rbx
movq 0xc668(%rip), %rsi      # 0x14fc0
leaq 0x40(%rsp), %rdi
callq 0x3360
leaq 0xb8(%rsp), %rdi
callq 0x30b0
jmp 0x8978
jmp 0x8975
jmp 0x8975
movq %rax, %rbx
leaq 0x1c0(%rsp), %rdi
callq 0x3080
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x89a1
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3270
movq %rbx, %rdi
callq 0x3490
nop