// File: CastellanZhang[P]lambdaFM/src/Frame/../Sample/fm_sample.h
// Function: fm_sample::fm_sample(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
fm_sample(const string& line)
    {
        this->x.clear();
        size_t posb = line.find_first_not_of(spliter, 0);
        size_t pose = line.find_first_of(spliter, posb);
        int label = atoi(line.substr(posb, pose-posb).c_str());
        if(label < 0)
        {
            cout << "wrong line input, label can not be less than 0\n" << line << endl;
            throw "wrong line input";
        }
        this->y = label;
        posb = line.find_first_not_of(spliter, pose);
        pose = line.find_first_of(spliter, posb);
        this->qid = line.substr(posb, pose-posb);
        string key;
        double value;
        while(pose < line.size())
        {
            posb = line.find_first_not_of(spliter, pose);
            if(posb == string::npos)
            {
                break;
            }
            if(commentTag == line[posb])
            {
                break;
            }
            pose = line.find_first_of(innerSpliter, posb);
            if(pose == string::npos)
            {
                cout << "wrong line input\n" << line << endl;
                throw "wrong line input";
            }
            key = line.substr(posb, pose-posb);
            posb = pose + 1;
            if(posb >= line.size())
            {
                cout << "wrong line input\n" << line << endl;
                throw "wrong line input";
            }
            pose = line.find_first_of(spliter, posb);
            value = stod(line.substr(posb, pose-posb));
            if(value != 0)
            {
                if(this->x.find(key) == this->x.end())
                {
                    this->x[key] = value;
                }
                else
                {
                    this->x[key] += value;
                }
            }
        }
    }

// Assembly:
subq $0x198, %rsp            # imm = 0x198
movq %rdi, 0x190(%rsp)
movq %rsi, 0x188(%rsp)
movq 0x190(%rsp), %rdi
movq %rdi, 0x90(%rsp)
addq $0x8, %rdi
movq %rdi, 0x88(%rsp)
callq 0x33f0
movq 0x90(%rsp), %rdi
addq $0x28, %rdi
movq %rdi, 0x98(%rsp)
callq 0xcdc0
movq 0x98(%rsp), %rdi
callq 0xcdd0
movq 0x188(%rsp), %rdi
leaq 0xde13(%rip), %rsi      # 0x1a340
movq %rsi, 0xa0(%rsp)
xorl %eax, %eax
movl %eax, %edx
callq 0x3270
movq 0xa0(%rsp), %rsi
movq %rax, 0x180(%rsp)
movq 0x188(%rsp), %rdi
movq 0x180(%rsp), %rdx
callq 0x32c0
movq %rax, 0x178(%rsp)
movq 0x188(%rsp), %rsi
movq 0x180(%rsp), %rdx
movq 0x178(%rsp), %rcx
subq %rdx, %rcx
leaq 0x150(%rsp), %rdi
callq 0x3310
jmp 0xc595
leaq 0x150(%rsp), %rdi
callq 0x3110
movq %rax, %rdi
callq 0x3470
movl %eax, 0x84(%rsp)
leaq 0x150(%rsp), %rdi
callq 0x3598
movl 0x84(%rsp), %eax
movl %eax, 0x174(%rsp)
cmpl $0x0, 0x174(%rsp)
jge 0xc665
movq 0xd9d7(%rip), %rdi      # 0x19fb8
leaq 0x5cd6(%rip), %rsi      # 0x122be
callq 0x32f0
movq %rax, 0x78(%rsp)
jmp 0xc5f4
movq 0x78(%rsp), %rdi
movq 0x188(%rsp), %rsi
callq 0x32b0
movq %rax, 0x70(%rsp)
jmp 0xc60d
movq 0x70(%rsp), %rdi
movq 0xd967(%rip), %rsi      # 0x19f80
callq 0x3320
jmp 0xc620
movl $0x8, %edi
callq 0x3170
movq %rax, %rdi
leaq 0x5cba(%rip), %rax      # 0x122ee
movq %rax, (%rdi)
movq 0xd94a(%rip), %rsi      # 0x19f88
xorl %eax, %eax
movl %eax, %edx
callq 0x34d0
jmp 0xcb4c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x148(%rsp)
movl %eax, 0x144(%rsp)
jmp 0xcb25
movq 0x90(%rsp), %rax
movl 0x174(%rsp), %ecx
movl %ecx, (%rax)
movq 0x188(%rsp), %rdi
movq 0x178(%rsp), %rdx
leaq 0xdcb3(%rip), %rsi      # 0x1a340
movq %rsi, 0x68(%rsp)
callq 0x3270
movq 0x68(%rsp), %rsi
movq %rax, 0x180(%rsp)
movq 0x188(%rsp), %rdi
movq 0x180(%rsp), %rdx
callq 0x32c0
movq %rax, 0x178(%rsp)
movq 0x188(%rsp), %rsi
movq 0x180(%rsp), %rdx
movq 0x178(%rsp), %rcx
subq %rdx, %rcx
leaq 0x120(%rsp), %rdi
callq 0x3310
jmp 0xc6eb
movq 0x90(%rsp), %rdi
addq $0x8, %rdi
leaq 0x120(%rsp), %rsi
callq 0x3390
leaq 0x120(%rsp), %rdi
callq 0x3598
leaq 0x100(%rsp), %rdi
callq 0x33f0
movq 0x178(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x188(%rsp), %rdi
callq 0x3200
movq %rax, %rcx
movq 0x60(%rsp), %rax
cmpq %rcx, %rax
jae 0xcb03
movq 0x188(%rsp), %rdi
movq 0x178(%rsp), %rdx
leaq 0xdbe0(%rip), %rsi      # 0x1a340
callq 0x3270
movq %rax, 0x180(%rsp)
cmpq $-0x1, 0x180(%rsp)
jne 0xc77d
jmp 0xcb03
movq 0x188(%rsp), %rdi
movq 0x180(%rsp), %rsi
callq 0x3370
movsbl (%rax), %ecx
movl $0x23, %eax
cmpl %ecx, %eax
jne 0xc7a3
jmp 0xcb03
movq 0x188(%rsp), %rdi
movq 0x180(%rsp), %rdx
leaq 0xdba6(%rip), %rsi      # 0x1a360
callq 0x32c0
movq %rax, 0x178(%rsp)
cmpq $-0x1, 0x178(%rsp)
jne 0xc861
movq 0xd7db(%rip), %rdi      # 0x19fb8
leaq 0x5b1b(%rip), %rsi      # 0x122ff
callq 0x32f0
movq %rax, 0x58(%rsp)
jmp 0xc7f0
movq 0x58(%rsp), %rdi
movq 0x188(%rsp), %rsi
callq 0x32b0
movq %rax, 0x50(%rsp)
jmp 0xc809
movq 0x50(%rsp), %rdi
movq 0xd76b(%rip), %rsi      # 0x19f80
callq 0x3320
jmp 0xc81c
movl $0x8, %edi
callq 0x3170
movq %rax, %rdi
leaq 0x5abe(%rip), %rax      # 0x122ee
movq %rax, (%rdi)
movq 0xd74e(%rip), %rsi      # 0x19f88
xorl %eax, %eax
movl %eax, %edx
callq 0x34d0
jmp 0xcb4c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x148(%rsp)
movl %eax, 0x144(%rsp)
jmp 0xcb18
movq 0x188(%rsp), %rsi
movq 0x180(%rsp), %rdx
movq 0x178(%rsp), %rcx
subq %rdx, %rcx
leaq 0xd8(%rsp), %rdi
callq 0x3310
jmp 0xc88b
leaq 0x100(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
callq 0x3390
leaq 0xd8(%rsp), %rdi
callq 0x3598
movq 0x178(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x180(%rsp)
movq 0x180(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x188(%rsp), %rdi
callq 0x3200
movq %rax, %rcx
movq 0x48(%rsp), %rax
cmpq %rcx, %rax
jb 0xc95a
movq 0xd6c9(%rip), %rdi      # 0x19fb8
leaq 0x5a09(%rip), %rsi      # 0x122ff
callq 0x32f0
movq %rax, 0x40(%rsp)
jmp 0xc902
movq 0x40(%rsp), %rdi
movq 0x188(%rsp), %rsi
callq 0x32b0
movq %rax, 0x38(%rsp)
jmp 0xc91b
movq 0x38(%rsp), %rdi
movq 0xd659(%rip), %rsi      # 0x19f80
callq 0x3320
jmp 0xc92e
movl $0x8, %edi
callq 0x3170
movq %rax, %rdi
leaq 0x59ac(%rip), %rax      # 0x122ee
movq %rax, (%rdi)
movq 0xd63c(%rip), %rsi      # 0x19f88
xorl %eax, %eax
movl %eax, %edx
callq 0x34d0
jmp 0xcb4c
movq 0x188(%rsp), %rdi
movq 0x180(%rsp), %rdx
leaq 0xd9cf(%rip), %rsi      # 0x1a340
callq 0x32c0
movq %rax, 0x178(%rsp)
movq 0x188(%rsp), %rsi
movq 0x180(%rsp), %rdx
movq 0x178(%rsp), %rcx
subq %rdx, %rcx
leaq 0xb8(%rsp), %rdi
callq 0x3310
jmp 0xc9a8
xorl %eax, %eax
movl %eax, %esi
leaq 0xb8(%rsp), %rdi
callq 0x72a0
movsd %xmm0, 0x30(%rsp)
jmp 0xc9c1
movsd 0x30(%rsp), %xmm0
movsd %xmm0, 0xf8(%rsp)
leaq 0xb8(%rsp), %rdi
callq 0x3598
movsd 0xf8(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0xc9f6
jp 0xc9f6
jmp 0xcafe
movq 0x90(%rsp), %rdi
addq $0x28, %rdi
leaq 0x100(%rsp), %rsi
callq 0xce00
movq %rax, 0x28(%rsp)
jmp 0xca16
movq 0x90(%rsp), %rdi
movq 0x28(%rsp), %rax
movq %rax, 0xb0(%rsp)
addq $0x28, %rdi
callq 0x56d0
movq %rax, 0xa8(%rsp)
leaq 0xb0(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0xcde0
testb $0x1, %al
jne 0xca57
jmp 0xcaba
movq 0x90(%rsp), %rdi
movsd 0xf8(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
addq $0x28, %rdi
leaq 0x100(%rsp), %rsi
callq 0xce30
movq %rax, 0x20(%rsp)
jmp 0xca86
movq 0x20(%rsp), %rax
movsd 0x18(%rsp), %xmm0
movsd %xmm0, (%rax)
jmp 0xcafc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x148(%rsp)
movl %eax, 0x144(%rsp)
leaq 0xb8(%rsp), %rdi
callq 0x3598
jmp 0xcb18
movq 0x90(%rsp), %rdi
movsd 0xf8(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
addq $0x28, %rdi
leaq 0x100(%rsp), %rsi
callq 0xce30
movq %rax, 0x10(%rsp)
jmp 0xcae9
movq 0x10(%rsp), %rax
movsd 0x8(%rsp), %xmm0
addsd (%rax), %xmm0
movsd %xmm0, (%rax)
jmp 0xcafe
jmp 0xc71e
leaq 0x100(%rsp), %rdi
callq 0x3598
addq $0x198, %rsp            # imm = 0x198
retq
leaq 0x100(%rsp), %rdi
callq 0x3598
movq 0x98(%rsp), %rdi
callq 0x8e40
movq 0x88(%rsp), %rdi
callq 0x3598
movq 0x148(%rsp), %rdi
callq 0x34f0
nopl (%rax)