// File: /workspace/github_cpp_makefile_star2_O1/hanhwi[P]SimPoint/analysiscode/FVParser.cpp
// Function: FVParser::nextLine(std::__cxx11::list<FVParserToken, std::allocator<FVParserToken>>*)
bool FVParser::nextLine(list<FVParserToken> *result) {
    string line;
    const int BUF_SIZE = 1024 * 1024;
    char buffer[BUF_SIZE];
    buffer[0] = '\0';
    do {
        fgets(buffer, BUF_SIZE, input);
    } while ((! eof()) && ((strlen(buffer) == 0) || ('T' != buffer[0])));
    Utilities::check(strlen(buffer) != BUF_SIZE - 1,
            "FVParser::nextLine() lines are too long for buffer");

    if (eof()) { return false; }

#if (__GNUC__ >= 3)
    istringstream parser(buffer);
#else
    istrstream parser(buffer, strlen(buffer));
#endif

    char t;
    parser >> t;

    result->clear();

    char colon;
    int dimension;
    double value;
    while (parser >> colon >> dimension >> colon >> value) {
        result->push_back(FVParserToken(dimension, value));
    }

    if (result->size() > 0) {
        lineNumber++;
        return true;
    } else {
        return false;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1001d8, %rsp         # imm = 0x1001D8
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x40(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
xorl %eax, %eax
movb %al, (%r13)
leaq 0x1d0(%rsp), %r15
movb %al, (%r15)
movq (%rbx), %rdx
movq %r15, %rdi
movl $0x100000, %esi         # imm = 0x100000
callq 0x4500
movq (%rbx), %rdi
callq 0x44c0
testl %eax, %eax
jne 0x84d1
cmpb $0x54, 0x1d0(%rsp)
jne 0x84ab
leaq 0x1d0(%rsp), %rdi
callq 0x4150
movq %rax, %r15
leaq 0x60(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x13e08(%rip), %rsi     # 0x1c2fa
leaq 0x13e33(%rip), %rdx     # 0x1c32c
leaq 0x50(%rsp), %rdi
callq 0x6086
cmpq $0xfffff, %r15          # imm = 0xFFFFF
je 0x8690
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x8527
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x42d0
movq (%rbx), %rdi
callq 0x44c0
testl %eax, %eax
je 0x853a
xorl %ebp, %ebp
jmp 0x8665
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1d0(%rsp), %r15
movq %r15, %rdi
callq 0x4150
leaq (%rsp,%rax), %rdx
addq $0x1d0, %rdx            # imm = 0x1D0
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x6086
leaq 0x50(%rsp), %rdi
leaq 0x8(%rsp), %rsi
movl $0x8, %edx
callq 0x4540
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x8597
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
leaq 0x50(%rsp), %rdi
leaq 0x3(%rsp), %rsi
callq 0x43f0
movq %r14, %rdi
callq 0x875a
leaq 0x2(%rsp), %r12
leaq 0x4(%rsp), %r13
leaq 0x8(%rsp), %rbp
leaq 0x50(%rsp), %rdi
movq %r12, %rsi
callq 0x43f0
movq %rax, %rdi
movq %r13, %rsi
callq 0x41a0
movq %rax, %rdi
movq %r12, %rsi
callq 0x43f0
movq %rax, %rdi
movq %rbp, %rsi
callq 0x41b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x8634
movl 0x4(%rsp), %r15d
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x28(%rsp)
movl $0x20, %edi
callq 0x42c0
movl %r15d, 0x10(%rax)
movsd 0x28(%rsp), %xmm0
movsd %xmm0, 0x18(%rax)
movq %rax, %rdi
movq %r14, %rsi
callq 0x4050
incq 0x10(%r14)
jmp 0x85bd
cmpq $0x0, 0x10(%r14)
setne %bpl
je 0x8642
incl 0x8(%rbx)
movq 0x1e987(%rip), %rsi     # 0x26fd0
leaq 0x50(%rsp), %rdi
callq 0x4450
leaq 0xc8(%rsp), %rdi
callq 0x4120
leaq 0x40(%rsp), %r13
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x867c
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x42d0
movl %ebp, %eax
addq $0x1001d8, %rsp         # imm = 0x1001D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1ec99(%rip), %rax     # 0x27330
movl (%rax), %ecx
shrl $0x1f, %ecx
movq 0x8(%rax,%rcx,8), %rbx
leaq 0x13ad0(%rip), %rsi     # 0x1c178
movl $0x8, %edx
movq %rbx, %rdi
callq 0x4330
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq %rbx, %rdi
callq 0x4330
movq %rax, %rdi
callq 0x4160
movl $0x1, %edi
callq 0x4370
jmp 0x8714
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x8735
movq 0x18(%rsp), %rsi
jmp 0x8703
jmp 0x870d
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x8735
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0x8735
movq %rax, %rbx
jmp 0x8735
jmp 0x8714
movq %rax, %rbx
movq 0x1e8b2(%rip), %rsi     # 0x26fd0
leaq 0x50(%rsp), %rdi
callq 0x4450
leaq 0xc8(%rsp), %rdi
callq 0x4120
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x8751
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4580
nop