// File: /workspace/github_cpp_makefile_star2_O1/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 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x10(%rdi), %rdi
callq 0x824c
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), %r15
leaq 0x18(%rbx), %rax
movq %rax, 0x28(%rsp)
xorl %r13d, %r13d
leaq 0x8(%rsp), %rbp
leaq 0x40(%rsp), %r12
movl %r13d, 0x4(%rsp)
movq 0x10(%rbx), %rdi
callq 0x6d62
cmpl %eax, %r13d
jge 0x8a2c
movq 0x60(%rbx), %rcx
movq %r15, %rax
testq %rcx, %rcx
je 0x8911
movl 0x4(%rsp), %edx
movq %r15, %rax
xorl %esi, %esi
cmpl %edx, 0x20(%rcx)
setl %sil
cmovgeq %rcx, %rax
movq 0x10(%rcx,%rsi,8), %rcx
testq %rcx, %rcx
jne 0x88fa
movq %r15, %rcx
cmpq %r15, %rax
je 0x8927
movl 0x4(%rsp), %ecx
cmpl 0x20(%rax), %ecx
cmovlq %r15, %rax
movq %rax, %rcx
cmpq %r15, %rcx
je 0x8961
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 0x89cf
movq 0x60(%rbx), %rcx
movq %r15, %rax
testq %rcx, %rcx
je 0x898b
movl 0x4(%rsp), %edx
movq %r15, %rax
xorl %esi, %esi
cmpl %edx, 0x20(%rcx)
setl %sil
cmovgeq %rcx, %rax
movq 0x10(%rcx,%rsi,8), %rcx
testq %rcx, %rcx
jne 0x8974
movq %r15, %rcx
cmpq %r15, %rax
je 0x89a1
movl 0x4(%rsp), %ecx
cmpl 0x20(%rax), %ecx
cmovlq %r15, %rax
movq %rax, %rcx
cmpq %r15, %rcx
jne 0x8a67
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)
je 0x8a1f
jmp 0x8a67
movq %r12, %rdi
movq %rbp, %rsi
movl $0x8, %edx
callq 0x3450
movq %r12, %rdi
leaq 0x30(%rsp), %rsi
callq 0x3380
movq %r12, %rdi
movq 0xd5ca(%rip), %rsi      # 0x15fc0
callq 0x3360
leaq 0xb8(%rsp), %rdi
callq 0x30b0
movq 0x28(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x8f9a
movaps 0x30(%rsp), %xmm0
movups %xmm0, (%rax)
movl 0x4(%rsp), %r13d
incl %r13d
jmp 0x88d0
leaq 0x1c0(%rsp), %rdi
callq 0x3080
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x8a55
movq 0x18(%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 0xd57a(%rip), %rdi      # 0x15fe8
leaq 0x71dc(%rip), %rsi      # 0xfc51
movl $0x19, %edx
callq 0x32b0
movq 0xd562(%rip), %rdi      # 0x15fe8
callq 0x3100
movl $0x1, %edi
callq 0x32f0
movq %rax, %rbx
jmp 0x8ad1
movq %rax, %rbx
movq 0xd51c(%rip), %rsi      # 0x15fc0
leaq 0x40(%rsp), %rdi
callq 0x3360
leaq 0xb8(%rsp), %rdi
callq 0x30b0
jmp 0x8ac4
jmp 0x8ac1
jmp 0x8ac1
movq %rax, %rbx
leaq 0x1c0(%rsp), %rdi
callq 0x3080
leaq 0x18(%rsp), %rax
movq 0x8(%rsp), %rdi
cmpq %rax, %rdi
je 0x8aed
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3270
movq %rbx, %rdi
callq 0x3490
nop