// File: canzarlab[P]Trajan/src/Similarity.cpp
// Function: JaccardSim(std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, double)
double JaccardSim(const ls& L1, const ls& L2, double k)
{
    vector<string> I(min(L1.size(), L2.size()));
    auto iit = set_intersection(L1.begin(), L1.end(), L2.begin(), L2.end(), I.begin());
    I.resize(iit - I.begin());
    double i = I.size(), u = L1.size() + L2.size() - I.size();
    double j = pow(i / u, k);
    return j < var_eps ? 0 : 2 * j;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movsd %xmm0, -0x18(%rbp)
movq -0x8(%rbp), %rdi
callq 0xdc140
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
callq 0xdc140
movq %rax, -0x40(%rbp)
leaq -0x38(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x156f0
movq (%rax), %rax
movq %rax, -0xb8(%rbp)
leaq -0x41(%rbp), %rdi
movq %rdi, -0xb0(%rbp)
callq 0xc9c70
movq -0xb8(%rbp), %rsi
movq -0xb0(%rbp), %rdx
leaq -0x30(%rbp), %rdi
callq 0xdc170
jmp 0xdbb22
leaq -0x41(%rbp), %rdi
callq 0x11300
movq -0x8(%rbp), %rdi
callq 0xdc250
movq %rax, -0x68(%rbp)
movq -0x8(%rbp), %rdi
callq 0xdc280
movq %rax, -0x70(%rbp)
movq -0x10(%rbp), %rdi
callq 0xdc250
movq %rax, -0x78(%rbp)
movq -0x10(%rbp), %rdi
callq 0xdc280
movq %rax, -0x80(%rbp)
leaq -0x30(%rbp), %rdi
callq 0xf0b0
movq %rax, -0x88(%rbp)
movq -0x68(%rbp), %rdi
movq -0x70(%rbp), %rsi
movq -0x78(%rbp), %rdx
movq -0x80(%rbp), %rcx
movq -0x88(%rbp), %r8
callq 0xdc1e0
movq %rax, -0xc0(%rbp)
jmp 0xdbb94
movq -0xc0(%rbp), %rax
movq %rax, -0x60(%rbp)
leaq -0x30(%rbp), %rdi
movq %rdi, -0xc8(%rbp)
callq 0xf0b0
movq %rax, -0x90(%rbp)
leaq -0x60(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0xca530
movq -0xc8(%rbp), %rdi
movq %rax, %rsi
callq 0xdc2b0
jmp 0xdbbd7
leaq -0x30(%rbp), %rdi
movq %rdi, -0x100(%rbp)
callq 0xca660
movq %rax, %xmm0
movaps 0x4e55d(%rip), %xmm1    # 0x12a150
movaps %xmm1, -0xf0(%rbp)
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x4e55a(%rip), %xmm1    # 0x12a160
movaps %xmm1, -0xe0(%rbp)
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd %xmm0, -0x98(%rbp)
movq -0x8(%rbp), %rdi
callq 0xdc140
movq %rax, -0xf8(%rbp)
movq -0x10(%rbp), %rdi
callq 0xdc140
movq -0x100(%rbp), %rdi
movq %rax, %rcx
movq -0xf8(%rbp), %rax
addq %rcx, %rax
movq %rax, -0xd0(%rbp)
callq 0xca660
movaps -0xf0(%rbp), %xmm2
movaps -0xe0(%rbp), %xmm1
movq %rax, %rcx
movq -0xd0(%rbp), %rax
subq %rcx, %rax
movq %rax, %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd %xmm0, -0xa0(%rbp)
movsd -0x98(%rbp), %xmm0
divsd -0xa0(%rbp), %xmm0
movsd -0x18(%rbp), %xmm1
callq 0xa7b0
movsd %xmm0, -0xa8(%rbp)
movsd -0xa8(%rbp), %xmm1
movsd 0xc5876(%rip), %xmm0    # 0x1a1540
ucomisd %xmm1, %xmm0
jbe 0xdbcdd
xorps %xmm0, %xmm0
movsd %xmm0, -0x108(%rbp)
jmp 0xdbcf5
movsd 0x2f6c3(%rip), %xmm0    # 0x10b3a8
mulsd -0xa8(%rbp), %xmm0
movsd %xmm0, -0x108(%rbp)
movsd -0x108(%rbp), %xmm0
movsd %xmm0, -0x110(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x110d0
movsd -0x110(%rbp), %xmm0
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x41(%rbp), %rdi
callq 0x11300
jmp 0xdbd4b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x110d0
movq -0x50(%rbp), %rdi
callq 0xa7c0
nopw %cs:(%rax,%rax)