// File: /workspace/github_cpp_makefile_star2_O1/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rdi), %rax
movq %rax, 0x30(%rsp)
leaq 0x18(%rdi), %rax
movq %rax, 0x38(%rsp)
movq %rax, 0x8(%rdi)
movq $0x0, 0x10(%rdi)
movb $0x0, 0x18(%rdi)
addq $0x28, %rdi
leaq 0x58(%rbx), %rax
movq %rax, 0x28(%rbx)
movq $0x1, 0x30(%rbx)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x38(%rbx)
movl $0x3f800000, 0x48(%rbx) # imm = 0x3F800000
movupd %xmm0, 0x50(%rbx)
movq %rdi, (%rsp)
callq 0x5964
movq 0x6965(%rip), %rsi      # 0xd2c8
movq 0x6966(%rip), %rcx      # 0xd2d0
movq %r14, %rdi
xorl %edx, %edx
callq 0x3400
movq %rax, %r13
movq 0x694a(%rip), %rsi      # 0xd2c8
movq 0x694b(%rip), %rcx      # 0xd2d0
movq %r14, %rdi
movq %rax, %rdx
callq 0x3390
movq %rax, %r12
movq %rax, %rcx
subq %r13, %rcx
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x32b0
leaq 0x20(%rsp), %r15
movq -0x10(%r15), %r13
movq %r13, %rdi
callq 0x33b0
movl %eax, %ebp
cmpq %r15, %r13
je 0x69c9
movq %r13, %rdi
callq 0x3260
testl %ebp, %ebp
js 0x6c94
movl %ebp, (%rbx)
movq 0x68ee(%rip), %rsi      # 0xd2c8
movq 0x68ef(%rip), %rcx      # 0xd2d0
movq %r14, %rdi
movq %r12, %rdx
callq 0x3400
movq %rax, %r12
movq 0x68d2(%rip), %rsi      # 0xd2c8
movq 0x68d3(%rip), %rcx      # 0xd2d0
movq %r14, %rdi
movq %rax, %rdx
callq 0x3390
movq %rax, %rbx
movq %rax, %rcx
subq %r12, %rcx
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x32b0
leaq 0x10(%rsp), %r12
movq 0x30(%rsp), %rdi
movq %r12, %rsi
callq 0x3310
movq (%r12), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6a46
callq 0x3260
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movb $0x0, 0x20(%rsp)
cmpq 0x8(%r14), %rbx
jae 0x6c01
leaq 0x50(%rsp), %r12
leaq 0x40(%rsp), %r13
leaq 0x10(%rsp), %r15
movq 0x684a(%rip), %rsi      # 0xd2c8
movq 0x684b(%rip), %rcx      # 0xd2d0
movq %r14, %rdi
movq %rbx, %rdx
callq 0x3400
cmpq $-0x1, %rax
je 0x6c01
movq %rax, %rbx
movq (%r14), %rax
cmpb $0x23, (%rax,%rbx)
je 0x6c01
movq 0x6837(%rip), %rsi      # 0xd2e8
movq 0x6838(%rip), %rcx      # 0xd2f0
movq %r14, %rdi
movq %rbx, %rdx
callq 0x3390
cmpq $-0x1, %rax
je 0x6c24
movq %rax, %rbp
movq %rax, %rcx
subq %rbx, %rcx
movq %r13, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x32b0
movq %r15, %rdi
movq %r13, %rsi
callq 0x3310
movq 0x40(%rsp), %rdi
cmpq %r12, %rdi
je 0x6afe
callq 0x3260
incq %rbp
cmpq 0x8(%r14), %rbp
jae 0x6c24
movq 0x67b6(%rip), %rsi      # 0xd2c8
movq 0x67b7(%rip), %rcx      # 0xd2d0
movq %r14, %rdi
movq %rbp, %rdx
callq 0x3390
movq %rax, %rbx
movq %rax, %rcx
subq %rbp, %rcx
movq %r13, %rdi
movq %r14, %r15
movq %r14, %rsi
movq %rbp, %rdx
callq 0x32b0
movq 0x40(%rsp), %r14
callq 0x3040
movq %rax, %rbp
movl (%rax), %r12d
movl $0x0, (%rax)
movq %r14, %rdi
leaq 0x60(%rsp), %rsi
callq 0x31e0
movsd %xmm0, 0x8(%rsp)
cmpq %r14, 0x60(%rsp)
je 0x6c7c
movl (%rbp), %eax
testl %eax, %eax
leaq 0x50(%rsp), %rcx
je 0x6b88
cmpl $0x22, %eax
jne 0x6b8c
jmp 0x6c88
movl %r12d, (%rbp)
movq 0x40(%rsp), %rdi
movq %rcx, %r12
cmpq %rcx, %rdi
je 0x6b9e
callq 0x3260
movsd 0x8(%rsp), %xmm0
ucomisd 0x2704(%rip), %xmm0     # 0x92b0
movq %r15, %r14
leaq 0x10(%rsp), %r15
jne 0x6bb8
jnp 0x6bf7
movq (%rsp), %rdi
movq %r15, %rsi
callq 0x6e0e
testq %rax, %rax
je 0x6be1
movq (%rsp), %rdi
movq %r15, %rsi
callq 0x6f0a
movsd 0x8(%rsp), %xmm0
addsd (%rax), %xmm0
jmp 0x6bf3
movq (%rsp), %rdi
movq %r15, %rsi
callq 0x6f0a
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rax)
cmpq 0x8(%r14), %rbx
jb 0x6a77
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6c15
callq 0x3260
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x6395(%rip), %rdi      # 0xcfc0
leaq 0x26dc(%rip), %rsi      # 0x930e
movl $0x11, %edx
callq 0x32e0
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x6376(%rip), %rdi      # 0xcfc0
callq 0x32e0
movq %rax, %rdi
callq 0x3120
movl $0x8, %edi
callq 0x3130
leaq 0x2695(%rip), %rcx      # 0x92fd
movq %rcx, (%rax)
movq 0x632e(%rip), %rsi      # 0xcfa0
movq %rax, %rdi
xorl %edx, %edx
callq 0x3420
leaq 0x2516(%rip), %rdi      # 0x9199
callq 0x3180
leaq 0x250a(%rip), %rdi      # 0x9199
callq 0x3350
movq 0x6325(%rip), %rdi      # 0xcfc0
leaq 0x262b(%rip), %rsi      # 0x92cd
movl $0x2f, %edx
callq 0x32e0
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x6306(%rip), %rdi      # 0xcfc0
callq 0x32e0
movq %rax, %rdi
callq 0x3120
movl $0x8, %edi
callq 0x3130
leaq 0x2625(%rip), %rcx      # 0x92fd
movq %rcx, (%rax)
movq 0x62be(%rip), %rsi      # 0xcfa0
movq %rax, %rdi
xorl %edx, %edx
callq 0x3420
jmp 0x6cf0
jmp 0x6cf0
movq %rax, %r14
jmp 0x6d37
jmp 0x6d20
jmp 0x6d20
jmp 0x6d20
jmp 0x6d20
movq %rax, %r14
cmpl $0x0, (%rbp)
jne 0x6d0a
movl %r12d, (%rbp)
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x6d23
callq 0x3260
jmp 0x6d23
movq %rax, %r14
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6d37
callq 0x3260
movq (%rsp), %rdi
callq 0x5946
movq 0x30(%rsp), %rax
movq (%rax), %rdi
cmpq 0x38(%rsp), %rdi
je 0x6d54
callq 0x3260
movq %r14, %rdi
callq 0x3440