// File: /workspace/github_cpp_makefile_star2_O3/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 0x8509
cmpb $0x54, 0x1d0(%rsp)
jne 0x84e3
leaq 0x1d0(%rsp), %rdi
callq 0x4150
movq %rax, %r15
leaq 0x60(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x13dd0(%rip), %rsi     # 0x1c2fa
leaq 0x13dfb(%rip), %rdx     # 0x1c32c
leaq 0x50(%rsp), %rdi
callq 0x6058
cmpq $0xfffff, %r15          # imm = 0xFFFFF
je 0x86c8
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x855f
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x42d0
movq (%rbx), %rdi
callq 0x44c0
testl %eax, %eax
je 0x8572
xorl %ebp, %ebp
jmp 0x869d
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 0x6058
leaq 0x50(%rsp), %rdi
leaq 0x8(%rsp), %rsi
movl $0x8, %edx
callq 0x4540
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x85cf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
leaq 0x50(%rsp), %rdi
leaq 0x3(%rsp), %rsi
callq 0x43f0
movq %r14, %rdi
callq 0x8792
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 0x866c
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 0x85f5
cmpq $0x0, 0x10(%r14)
setne %bpl
je 0x867a
incl 0x8(%rbx)
movq 0x1e94f(%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 0x86b4
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 0x1ec61(%rip), %rax     # 0x27330
movl (%rax), %ecx
shrl $0x1f, %ecx
movq 0x8(%rax,%rcx,8), %rbx
leaq 0x13a98(%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 0x874c
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x876d
movq 0x18(%rsp), %rsi
jmp 0x873b
jmp 0x8745
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x876d
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0x876d
movq %rax, %rbx
jmp 0x876d
jmp 0x874c
movq %rax, %rbx
movq 0x1e87a(%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 0x8789
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4580
nop