// File: /workspace/github_cpp_makefile_star2_O1/epfml[P]Bi-Sent2Vec/src/fasttext.cc
// Function: fasttext::FastText::sentenceVectors()
void FastText::sentenceVectors() {
  Vector vec(args_->dim);
  std::string sentence;
  Vector svec(args_->dim);
  std::string word;
  while (std::getline(std::cin, sentence)) {
    std::istringstream iss(sentence);
    svec.zero();
    int32_t count = 0;
    while(iss >> word) {
      getVector(vec, word);
      vec.mul(1.0 / vec.norm());
      svec.addVector(vec);
      count++;
    }
    svec.mul(1.0 / count);
    std::cout << sentence << " " << svec << std::endl;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1e8, %rsp            # imm = 0x1E8
movq %rdi, %rbx
movq (%rdi), %rax
movslq 0x94(%rax), %rsi
leaq 0x58(%rsp), %rdi
callq 0xef90
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq (%rbx), %rax
movslq 0x94(%rax), %rsi
leaq 0x48(%rsp), %rdi
callq 0xef90
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x1483f(%rip), %r15     # 0x29fd8
leaq 0x68(%rsp), %r13
leaq 0x48(%rsp), %rbp
leaq 0x28(%rsp), %r14
leaq 0x58(%rsp), %r12
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %edx
movq %r15, %rdi
leaq 0x8(%rsp), %rsi
callq 0x4600
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x15903
movq %r13, %rdi
leaq 0x8(%rsp), %rsi
movl $0x8, %edx
callq 0x4540
movq %rbp, %rdi
callq 0xefcc
xorl %r15d, %r15d
movq %r13, %rdi
movq %r14, %rsi
callq 0x43d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x15856
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x11c28
movq %r12, %rdi
callq 0xefe4
movss 0x9939(%rip), %xmm1     # 0x1f170
divss %xmm0, %xmm1
movq %r12, %rdi
movaps %xmm1, %xmm0
callq 0xf01c
movq %rbp, %rdi
movq %r12, %rsi
callq 0xf042
incl %r15d
jmp 0x15800
xorps %xmm0, %xmm0
cvtsi2sd %r15d, %xmm0
movsd 0x908a(%rip), %xmm1     # 0x1e8f0
divsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsd2ss %xmm1, %xmm0
movq %rbp, %rdi
callq 0xf01c
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x14736(%rip), %rdi     # 0x29fc0
callq 0x4350
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
leaq 0x92c1(%rip), %rsi      # 0x1eb62
callq 0x4350
movq %r15, %rdi
movq %rbp, %rsi
callq 0xf3e9
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq %r15, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x4200
movq %r13, %rdi
movq 0x146cb(%rip), %rsi     # 0x29fb0
callq 0x4450
leaq 0xe0(%rsp), %rdi
callq 0x4110
movq 0x146da(%rip), %r15     # 0x29fd8
jmp 0x157ad
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x1591f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4300
leaq 0x48(%rsp), %rdi
callq 0xefba
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x15945
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4300
leaq 0x58(%rsp), %rdi
callq 0xefba
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x159b8
jmp 0x1596a
jmp 0x15971
movq %rax, %rbx
jmp 0x15992
jmp 0x15971
movq %rax, %rbx
movq 0x14635(%rip), %rsi     # 0x29fb0
leaq 0x68(%rsp), %rdi
callq 0x4450
leaq 0xe0(%rsp), %rdi
callq 0x4110
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x159ae
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4300
leaq 0x48(%rsp), %rdi
callq 0xefba
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x159d4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4300
leaq 0x58(%rsp), %rdi
callq 0xefba
movq %rbx, %rdi
callq 0x45b0