name string | code string | asm string | file string |
|---|---|---|---|
baryonyx::result baryonyx::itm::solve_problem<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag, baryonyx::itm::default_cost_type<float>>, float, baryonyx::itm::maximize_tag, baryonyx::itm::default_cost_type<float>>(baryonyx::context const&, baryonyx::problem const&) | inline result
solve_problem(const context& ctx, const problem& pb)
{
if (ctx.start)
ctx.start(ctx.parameters);
result ret;
auto variables = length(pb.vars.values);
auto constraints{ make_merged_constraints(ctx, pb) };
if (!constraints.empty() && !pb.vars.values.empty()) {
random_e... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x130, %rsp # imm = 0x130
cmpq $0x0, 0x128(%rsi)
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
je 0x34f97
leaq 0x118(%r14), %rdi
movq %r14, %rsi
callq 0x3527e
vxorps %xmm0, %xmm0, %xmm0
vmovups %zmm0, 0x58(%rbx)
vmovups %zmm0, 0x40(%rbx)
vmovups ... | /quesnel[P]baryonyx/lib/src/itm-solver-common.hpp |
baryonyx::itm::default_cost_type<float>::default_cost_type(baryonyx::objective_function const&, int) | default_cost_type(const objective_function& obj_, int n)
: obj(obj_)
, linear_elements(std::make_unique<Float[]>(n))
{
for (const auto& elem : obj.elements) {
bx_ensures(0 <= elem.variable_index && elem.variable_index < n);
linear_elements[elem.variable_index] +=
... | pushq %r14
pushq %rbx
pushq %rax
movq %rsi, (%rdi)
movq %rdi, %r14
addq $0x8, %rdi
movslq %edx, %rsi
movl %edx, %ebx
callq 0x35bd8
movq (%r14), %rdx
movq 0x8(%r14), %rax
movq (%rdx), %rcx
movq 0x8(%rdx), %rdx
cmpq %rdx, %rcx
je 0x3541e
movslq 0x8(%rcx), %rsi
testq %rsi, %rsi
js 0x35426
cmpl %ebx, %esi
jge 0x35426
vcvts... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::get_thread_number(baryonyx::context const&) | inline unsigned
get_thread_number(const baryonyx::context& ctx) noexcept
{
unsigned ret;
if (ctx.parameters.thread <= 0)
ret = std::thread::hardware_concurrency();
else
ret = static_cast<unsigned>(ctx.parameters.thread);
if (ret == 0)
return 1;
return ret;
} | movl 0xac(%rdi), %eax
testl %eax, %eax
jg 0x3545b
pushq %rax
callq 0xb4f0
addq $0x8, %rsp
cmpl $0x1, %eax
adcl $0x0, %eax
retq
| /quesnel[P]baryonyx/lib/src/itm-optimizer-common.hpp |
baryonyx::itm::generate_seed(std::linear_congruential_engine<unsigned long, 16807ul, 0ul, 2147483647ul>&, unsigned int) | inline std::unique_ptr<random_engine::result_type[]>
generate_seed(random_engine& rng, unsigned thread_id)
{
using type = random_engine::result_type;
auto ret = std::make_unique<type[]>(thread_id);
std::uniform_int_distribution<type> dst(std::numeric_limits<type>::min(),
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movl %edx, %esi
movq %rdi, %rbx
movl %edx, 0x4(%rsp)
callq 0x36902
leaq 0x8(%rsp), %rdi
andq $0x0, (%rdi)
orq $-0x1, 0x8(%rdi)
movq %r14, %rsi
callq 0x3709a
movq (%rbx), %rcx
movq %rax, (%rcx)
pushq $0x1
popq %r12
xorl %r... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
void baryonyx::convert<baryonyx::itm::maximize_tag>(baryonyx::raw_result<baryonyx::itm::maximize_tag> const&, baryonyx::solution&, int) | void
convert(const raw_result<Mode>& source, solution& sol, int variables)
{
sol.value = source.value;
sol.variables.resize(variables);
for (int i = 0; i != variables; ++i)
sol.variables[i] = static_cast<var_value>(source.x[i]);
} | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
vmovsd 0x10(%rdi), %xmm0
movslq %edx, %r15
movq %rdi, %r14
movq %rsi, %rbx
movq %rsi, %rdi
vmovsd %xmm0, 0x18(%rsi)
movq %r15, %rsi
callq 0x41362
movl %r15d, %r12d
xorl %r15d, %r15d
cmpq %r15, %r12
je 0x357c9
movq %r14, %rdi
movl %r15d, %esi
callq 0x3664a
movq (%rb... | /quesnel[P]baryonyx/lib/src/result.hpp |
baryonyx::itm::storage<baryonyx::itm::default_cost_type<float>, baryonyx::itm::maximize_tag>::storage(std::linear_congruential_engine<unsigned long, 16807ul, 0ul, 2147483647ul>&, baryonyx::itm::default_cost_type<float> const&, double, int, int, std::vector<baryonyx::itm::merged_constraint, std::allocator<baryonyx::itm:... | storage(random_engine& rng,
const Cost& costs_,
const double cost_constant_,
const int population_size,
const int variables,
const std::vector<merged_constraint>& constraints_)
: m_indices(population_size)
, m_data(population_size)
, m_baster... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
vmovsd %xmm0, 0x40(%rsp)
vxorpd %xmm0, %xmm0, %xmm0
movq %rdx, 0x18(%rsp)
movq %rdi, %r15
movslq %ecx, %r12
leaq 0x58(%rsp), %rdx
movq %rsi, %r13
movq %r9, 0x28(%rsp)
movl %r8d, %ebp
movl %ecx, %ebx
vmovupd %ymm0, 0x18(%rdi)
vmovupd %ymm... | /quesnel[P]baryonyx/lib/src/itm-optimizer-common.hpp |
baryonyx::itm::init_with_random(baryonyx::bit_array&, std::linear_congruential_engine<unsigned long, 16807ul, 0ul, 2147483647ul>&, int, double) | inline void
init_with_random(bit_array& x,
random_engine& rng,
const int variables,
const double init_ramdom) noexcept
{
std::bernoulli_distribution dist(init_ramdom);
for (int i = 0; i != variables; ++i)
if (dist(rng))
x.set(i);
el... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
vmovsd %xmm0, (%rsp)
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
xorl %ebp, %ebp
cmpl %ebp, %ebx
je 0x362ee
movq %r14, %rdi
callq 0x36ac3
vmovsd (%rsp), %xmm1
movq %r15, %rdi
movl %ebp, %esi
vucomisd %xmm0, %xmm1
jbe 0x362e5
callq 0x369c8
jmp 0x362ea
callq 0x36... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
void baryonyx::itm::init_with_pre_solve<baryonyx::itm::default_cost_type<float>, baryonyx::itm::maximize_tag>(baryonyx::bit_array&, baryonyx::bit_array&, std::linear_congruential_engine<unsigned long, 16807ul, 0ul, 2147483647ul>&, baryonyx::itm::default_cost_type<float> const&, std::vector<baryonyx::itm::merged_constra... | void
init_with_pre_solve(bit_array& x_pessimistic,
bit_array& x_optimistic,
random_engine& rng,
const Cost& c,
const std::vector<merged_constraint>& constraints,
const double init_random) noexcept
{
int max_length = ... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rcx, 0x38(%rsp)
movq (%r8), %rax
movq 0x8(%r8), %rcx
movq %rdx, 0x30(%rsp)
vmovsd %xmm0, 0x48(%rsp)
movq %r8, %r13
xorl %edx, %edx
movq %rsi, 0x28(%rsp)
movq %rdi, 0x20(%rsp)
cmpq %rcx, %rax
je 0x36352
movq 0x8(%rax), %rsi
subq (%r... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::default_cost_type<float>::results(baryonyx::bit_array const&, double) const | double results(const bit_array& x, double cost_constant) const noexcept
{
for (int i = 0, e = length(obj.elements); i != e; ++i)
if (x[obj.elements[i].variable_index])
cost_constant += obj.elements[i].factor;
return cost_constant;
} | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq (%rdi), %rax
movabsq $0xffffffff0, %r15 # imm = 0xFFFFFFFF0
vmovsd %xmm0, (%rsp)
movq %rsi, %rbx
movq %rdi, %r14
xorl %r12d, %r12d
movq 0x8(%rax), %rcx
subq (%rax), %rcx
andq %rcx, %r15
cmpq %r12, %r15
je 0x36639
movq (%r14), %rax
movq %rbx, %rdi
movq (%r... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::storage<baryonyx::itm::default_cost_type<float>, baryonyx::itm::maximize_tag>::sort() | void sort() noexcept
{
m_indices_writer lock{ m_indices_mutex };
std::sort(
std::begin(m_indices), std::end(m_indices), [this](int i1, int i2) {
const int cst_1 = this->m_data[i1].remaining_constraints;
const int cst_2 = this->m_data[i2].remaining_constraints;
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x377e6
movq 0x38(%rbx), %rdi
movq 0x40(%rbx), %rsi
movq %rbx, %rdx
callq 0x37909
movq 0x60692d(%rip), %r13 # 0x63cfc8
movq (%r13), %rdi
leaq 0x4239f2(%rip), %rcx # 0x45a09... | /quesnel[P]baryonyx/lib/src/itm-optimizer-common.hpp |
baryonyx::bit_array_impl::bit_array_impl(int) | bit_array_impl(int size)
: m_size(size)
, m_block_size((m_size / bit_per_block) + 1)
, m_data(std::make_unique<underlying_type[]>(m_block_size))
{
std::fill_n(m_data.get(), m_block_size, k_zeros);
} | pushq %r14
pushq %rbx
pushq %rax
movl %esi, %eax
movq %rdi, %r14
movl %esi, (%rdi)
pushq $0x40
popq %rcx
cltd
leaq 0x8(%rdi), %rbx
idivl %ecx
incl %eax
movslq %eax, %rsi
movl %eax, 0x4(%rdi)
movq %rbx, %rdi
callq 0x36902
movq 0x8(%r14), %rdi
movl 0x4(%r14), %esi
leaq 0x423e5e(%rip), %rdx # 0x45a740
callq 0x36943
add... | /quesnel[P]baryonyx/lib/src/bit-array.hpp |
baryonyx::itm::solver_functor<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag, baryonyx::itm::default_cost_type<float>>, float, baryonyx::itm::maximize_tag, baryonyx::itm::default_cost_type<float>, baryonyx::file_observer>::is_timelimit_reached() | bool is_timelimit_reached()
{
m_end = std::chrono::steady_clock::now();
return is_time_limit(m_ctx.parameters.time_limit, m_begin, m_end);
} | pushq %rbx
movq %rdi, %rbx
callq 0xb5a0
movq %rax, 0x8(%rbx)
vxorpd %xmm2, %xmm2, %xmm2
movq 0x10(%rbx), %rcx
subq (%rbx), %rax
vmovsd (%rcx), %xmm0
vcvtsi2sd %rax, %xmm1, %xmm1
vdivsd 0x4164c7(%rip), %xmm1, %xmm1 # 0x459a80
vcmpnlepd %xmm2, %xmm0, %k1
vcmpltpd %xmm1, %xmm0, %k0 {%k1}
kmovd %k0, %eax
andb $0x1, %al
pop... | /quesnel[P]baryonyx/lib/src/itm-solver-common.hpp |
baryonyx::details::pi_file_observer::pi_file_observer(std::basic_string_view<char, std::char_traits<char>>, int, int, long) | pi_file_observer(const std::string_view filename,
int m,
int /*n*/,
long int /*loop*/)
: constraints(m)
, m_ofs(fmt::format("{}-pi.txt", filename))
{} | pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movl %ecx, (%rdi)
leaq 0x20(%rsp), %r14
leaq 0x417025(%rip), %rdi # 0x45a62d
addq $0x8, %rbx
movq %rdx, (%r14)
movq %rsi, 0x8(%r14)
callq 0xf277
movq %rsp, %r15
pushq $0xd
popq %rcx
movq %r15, %rdi
movq %rax, %rsi
movq %r14, %r8
callq 0x1adbb
pushq $0... | /quesnel[P]baryonyx/lib/src/observer.hpp |
baryonyx::details::ap_file_observer::ap_file_observer(std::basic_string_view<char, std::char_traits<char>>, int, int, long) | ap_file_observer(const std::string_view filename,
int m,
int n,
long int /*loop*/)
: constraints(m)
, variables(n)
, m_frame(0)
, m_basename(std::move(filename))
, m_value(variables)
{} | pushq %r14
pushq %rbx
subq $0x18, %rsp
leaq 0x8(%rsp), %rax
leaq 0x10(%rdi), %rbx
movq %rdi, %r14
movq %rsi, (%rax)
movq %rdx, 0x8(%rax)
movl %ecx, (%rdi)
movl %r8d, 0x4(%rdi)
andl $0x0, 0x8(%rdi)
leaq 0x7(%rsp), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x23460
movslq 0x4(%r14), %rsi
addq $0x30, %r14
leaq 0x7(%rsp), ... | /quesnel[P]baryonyx/lib/src/observer.hpp |
void baryonyx::details::pi_file_observer::make_observation<float>(baryonyx::sparse_matrix<int> const&, float const*, float const*) | void make_observation(const sparse_matrix<int>& /*ap*/,
const Float* /*P*/,
const Float* pi)
{
static_assert(std::is_floating_point<Float>::value);
if (m_ofs) {
if (m_len > 1) {
m_ofs << pi[0];
for (int... | movq 0x8(%rdi), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x28(%rdi,%rax)
je 0x43830
retq
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
vmovss (%rcx), %xmm0
movl 0x4(%rdi), %ebp
leaq 0x8(%rdi), %r15
movq %rdi, %r14
movq %rcx, %rbx
movq %r15, %rdi
callq 0xb660
cmpl $0x2, %ebp
jl 0x43882
pushq $0x1
popq %r12
pushq... | /quesnel[P]baryonyx/lib/src/observer.hpp |
void baryonyx::details::ap_file_observer::make_observation<float>(baryonyx::sparse_matrix<int> const&, float const*, float const*) | void make_observation(const sparse_matrix<int>& ap,
const Float* P,
const Float* /*pi*/)
{
static_assert(std::is_floating_point<Float>::value);
std::ofstream ofs(fmt::format("{}-P-{}.txt", m_basename, m_frame++));
for (int k = 0; k != con... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x258, %rsp # imm = 0x258
movl 0x8(%rdi), %eax
movq %rdi, %r15
movq %rdx, %rbx
movq %rsi, %r14
movq %rsp, %r12
leal 0x1(%rax), %ecx
movl %ecx, 0x8(%rdi)
vmovups 0x10(%rdi), %xmm0
leaq 0x416d6f(%rip), %rdi # 0x45a637
vmovaps %xmm0, (%r... | /quesnel[P]baryonyx/lib/src/observer.hpp |
baryonyx::itm::solver_functor<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag, baryonyx::itm::default_cost_type<float>>, float, baryonyx::itm::maximize_tag, baryonyx::itm::default_cost_type<float>, baryonyx::none_observer>::store_if_better(baryonyx::bit_array const&, double, long) | inline bool
is_better_solution(Float lhs, Float rhs) noexcept
{
if constexpr (std::is_same_v<Mode, minimize_tag>)
return lhs < rhs;
else
return lhs > rhs;
} | vucomisd 0x30(%rdi), %xmm0
jbe 0x43b9a
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
addq $0x20, %rdi
movq %rdx, %rbx
vmovsd %xmm0, (%rsp)
callq 0x36a44
movq %r14, %rdi
callq 0x43c14
vmovsd (%rsp), %xmm1
vmovsd %xmm0, 0x38(%r14)
movq %rbx, 0x48(%r14)
andl $0x0, 0x50(%r14)
vmovsd %xmm1, 0x30(%r14)
addq $0x8, %rsp
pop... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::solver_functor<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag, baryonyx::itm::default_cost_type<float>>, float, baryonyx::itm::maximize_tag, baryonyx::itm::default_cost_type<float>, baryonyx::none_observer>::is_timelimit_reached() | bool is_timelimit_reached()
{
m_end = std::chrono::steady_clock::now();
return is_time_limit(m_ctx.parameters.time_limit, m_begin, m_end);
} | pushq %rbx
movq %rdi, %rbx
callq 0xb5a0
movq %rax, 0x8(%rbx)
vxorpd %xmm2, %xmm2, %xmm2
movq 0x10(%rbx), %rcx
subq (%rbx), %rax
vmovsd (%rcx), %xmm0
vcvtsi2sd %rax, %xmm1, %xmm1
vdivsd 0x415e83(%rip), %xmm1, %xmm1 # 0x459a80
vcmpnlepd %xmm2, %xmm0, %k1
vcmpltpd %xmm1, %xmm0, %k0 {%k1}
kmovd %k0, %eax
andb $0x1, %al
pop... | /quesnel[P]baryonyx/lib/src/itm-solver-common.hpp |
baryonyx::result baryonyx::itm::optimize_problem<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>>, float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>>(baryonyx::context const&, baryonyx::problem const&) | inline result
optimize_problem(const context& ctx, const problem& pb)
{
result r;
if (ctx.start)
ctx.start(ctx.parameters);
auto constraints{ make_merged_constraints(ctx, pb) };
if (constraints.empty() || pb.vars.values.empty()) {
r.status = result_status::success;
r.solutions.... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp # imm = 0x198
vxorpd %xmm0, %xmm0, %xmm0
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %r12
vmovupd %zmm0, 0x58(%rdi)
vmovupd %zmm0, 0x40(%rdi)
vmovupd %zmm0, (%rdi)
movq $0x7fffffff, 0x98(%rdi) # imm = 0x7FFFFFFF
movl $0x2, 0xa... | /quesnel[P]baryonyx/lib/src/itm-optimizer-common.hpp |
baryonyx::result baryonyx::itm::solve_problem<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>>, float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>>(baryonyx::context const&, baryonyx::problem const&) | inline result
solve_problem(const context& ctx, const problem& pb)
{
if (ctx.start)
ctx.start(ctx.parameters);
result ret;
auto variables = length(pb.vars.values);
auto constraints{ make_merged_constraints(ctx, pb) };
if (!constraints.empty() && !pb.vars.values.empty()) {
random_e... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x140, %rsp # imm = 0x140
cmpq $0x0, 0x128(%rsi)
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
je 0x442ce
leaq 0x118(%r14), %rdi
movq %r14, %rsi
callq 0x3527e
vxorps %xmm0, %xmm0, %xmm0
vmovups %zmm0, 0x58(%rbx)
vmovups %zmm0, 0x40(%rbx)
vmovups ... | /quesnel[P]baryonyx/lib/src/itm-solver-common.hpp |
baryonyx::itm::quadratic_cost_type<float>::quadratic_cost_type(baryonyx::objective_function const&, int) | quadratic_cost_type(const objective_function& obj_, int n)
: obj(obj_)
, linear_elements(std::make_unique<Float[]>(n))
, quadratic_elements(
std::make_unique<quad[]>(2 * obj.qelements.size() + 1))
, indices(std::make_unique<int[]>(n + 1))
{
for (int i = 0, e = length(obj.el... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, (%rdi)
leaq 0x8(%rdi), %r15
movslq %edx, %rsi
movq %rdi, %r13
movl %edx, %ebx
movq %r15, %rdi
callq 0x35bd8
movq (%r13), %rax
leaq 0x10(%r13), %r14
movq 0x20(%rax), %rsi
subq 0x18(%rax), %rsi
sarq $0x3, %rsi
orq $0x1, %rsi
movq %r14... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::storage<baryonyx::itm::quadratic_cost_type<float>, baryonyx::itm::maximize_tag>::storage(std::linear_congruential_engine<unsigned long, 16807ul, 0ul, 2147483647ul>&, baryonyx::itm::quadratic_cost_type<float> const&, double, int, int, std::vector<baryonyx::itm::merged_constraint, std::allocator<baryonyx::... | storage(random_engine& rng,
const Cost& costs_,
const double cost_constant_,
const int population_size,
const int variables,
const std::vector<merged_constraint>& constraints_)
: m_indices(population_size)
, m_data(population_size)
, m_baster... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
vmovsd %xmm0, 0x40(%rsp)
vxorpd %xmm0, %xmm0, %xmm0
movq %rdx, 0x18(%rsp)
movq %rdi, %r15
movslq %ecx, %r12
leaq 0x58(%rsp), %rdx
movq %rsi, %r13
movq %r9, 0x28(%rsp)
movl %r8d, %ebp
movl %ecx, %ebx
vmovupd %ymm0, 0x18(%rdi)
vmovupd %ymm... | /quesnel[P]baryonyx/lib/src/itm-optimizer-common.hpp |
void baryonyx::itm::init_with_bastert<baryonyx::itm::quadratic_cost_type<float>, baryonyx::itm::maximize_tag>(baryonyx::bit_array&, baryonyx::itm::quadratic_cost_type<float> const&, int, int) | void
init_with_bastert(bit_array& x,
const Cost& c,
const int variables,
const int value_if_0) noexcept
{
for (int i = 0; i != variables; ++i)
if (init_x<Mode>(c[i], value_if_0))
x.set(i);
else
x.unset(i);
} | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
xorl %r12d, %r12d
cmpl %r12d, %ebp
je 0x44e4b
testl %ebx, %ebx
movq %r14, %rdi
movl %r12d, %esi
setne %r13b
callq 0x452d8
vxorps %xmm1, %xmm1, %xmm1
vucomiss %xmm1, %xmm0
setnp %c... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
void baryonyx::itm::init_with_pre_solve<baryonyx::itm::quadratic_cost_type<float>, baryonyx::itm::maximize_tag>(baryonyx::bit_array&, baryonyx::bit_array&, std::linear_congruential_engine<unsigned long, 16807ul, 0ul, 2147483647ul>&, baryonyx::itm::quadratic_cost_type<float> const&, std::vector<baryonyx::itm::merged_con... | void
init_with_pre_solve(bit_array& x_pessimistic,
bit_array& x_optimistic,
random_engine& rng,
const Cost& c,
const std::vector<merged_constraint>& constraints,
const double init_random) noexcept
{
int max_length = ... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rcx, 0x30(%rsp)
movq (%r8), %rax
movq 0x8(%r8), %rcx
movq %rdx, %r12
vmovsd %xmm0, 0x48(%rsp)
movq %r8, %r13
xorl %edx, %edx
movq %rsi, 0x28(%rsp)
movq %rdi, 0x20(%rsp)
cmpq %rcx, %rax
je 0x44ea9
movq 0x8(%rax), %rsi
subq (%rax), %... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::storage<baryonyx::itm::quadratic_cost_type<float>, baryonyx::itm::maximize_tag>::sort() | void sort() noexcept
{
m_indices_writer lock{ m_indices_mutex };
std::sort(
std::begin(m_indices), std::end(m_indices), [this](int i1, int i2) {
const int cst_1 = this->m_data[i1].remaining_constraints;
const int cst_2 = this->m_data[i2].remaining_constraints;
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x377e6
movq 0x38(%rbx), %rdi
movq 0x40(%rbx), %rsi
movq %rbx, %rdx
callq 0x45d73
movq 0x5f7d97(%rip), %r13 # 0x63cfc8
movq (%r13), %rdi
leaq 0x414e5c(%rip), %rcx # 0x45a09... | /quesnel[P]baryonyx/lib/src/itm-optimizer-common.hpp |
baryonyx::itm::optimize_functor<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>>, float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>>::operator()(std::atomic<bool> const&, baryonyx::itm::best_solution_recorder<ba... | void operator()(const std::atomic_bool& stop_task,
best_solution_recorder<Cost, Float, Mode>& best_recorder,
const std::vector<merged_constraint>& constraints,
int variables,
const Cost& original_costs,
double cost_const... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x168, %rsp # imm = 0x168
movq %rdi, %rbp
leaq 0x20(%rsp), %rdi
movq %rsi, %r15
movl %r8d, %esi
vmovsd %xmm0, 0x60(%rsp)
movq %r9, %r12
movl %r8d, %ebx
movq %rcx, %r14
movq %rdx, 0x30(%rsp)
callq 0x368ae
movq (%rbp), %r13
movq %rbp, 0x78... | /quesnel[P]baryonyx/lib/src/itm-optimizer-common.hpp |
float baryonyx::itm::compute_delta<float, baryonyx::itm::quadratic_cost_type<float>>(baryonyx::context const&, baryonyx::itm::quadratic_cost_type<float> const&, float, int) | inline Float
compute_delta(const context& ctx, const Cost& c, Float theta, int n)
{
info(ctx, " - delta not defined, compute it:\n");
const auto mini = c.min(n);
const auto ret = mini - theta * mini;
info(ctx,
" - delta={} (min normalized cost:{} / theta: {})\n",
ret,
mi... | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
leaq 0x14(%rsp), %r12
leaq 0x4134d9(%rip), %rsi # 0x45a1d4
movl %edx, %ebx
vmovss %xmm0, 0x8(%rsp)
movq %rdi, %r15
vmovss %xmm0, (%r12)
callq 0x348e9
movq %r14, %rdi
movl %ebx, %esi
callq 0x4856e
leaq 0x10(%rsp), %rcx
leaq 0xc(%rsp), %rbx
l... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
void baryonyx::itm::quadratic_cost_type<float>::make_random_norm<std::linear_congruential_engine<unsigned long, 16807ul, 0ul, 2147483647ul>>(int, std::linear_congruential_engine<unsigned long, 16807ul, 0ul, 2147483647ul>&) | void make_random_norm(int n, Random& rng)
{
std::vector<std::pair<Float, int>> r(n);
std::vector<std::pair<quad, int>> q(indices[n]);
for (int i = 0; i != n; ++i)
r[i] = { linear_elements[i], i };
std::sort(r.begin(), r.end(), [](const auto& lhs, const auto& rhs) {
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r15
movq %rdi, %rbx
movslq %esi, %r14
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rdx
movl %esi, %ebp
movq %r14, %rsi
callq 0x39742
movq 0x18(%rbx), %rax
movslq (%rax,%r14,4), %rsi
leaq 0x30(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::quadratic_cost_type<float>::make_l1_norm(int) | void make_l1_norm(int n)
{
Float div = { 0 };
for (int i = 0; i != n; ++i)
div += std::abs(linear_elements[i]);
for (int i = 0, e = indices[n]; i != e; ++i)
div += std::abs(quadratic_elements[i].factor);
if (std::isnormal(div)) {
for (int i = 0;... | vbroadcastss 0x4121d5(%rip), %xmm1 # 0x459ac8
movq 0x8(%rdi), %rax
vxorps %xmm0, %xmm0, %xmm0
movl %esi, %ecx
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x47916
vmovss (%rax,%rdx,4), %xmm2
incq %rdx
vandps %xmm1, %xmm2, %xmm2
vaddss %xmm2, %xmm0, %xmm0
jmp 0x478ff
movq 0x18(%rdi), %r8
movslq %esi, %rdx
movq 0x10(%rdi), %rsi
mo... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::quadratic_cost_type<float>::make_l2_norm(int) | void make_l2_norm(int n)
{
Float div = { 0 };
for (int i = 0; i != n; ++i)
div += linear_elements[i] * linear_elements[i];
;
for (int i = 0, e = indices[n]; i != e; ++i)
div += quadratic_elements[i].factor * quadratic_elements[i].factor;
if (std::is... | movq 0x8(%rdi), %rax
vxorps %xmm0, %xmm0, %xmm0
movl %esi, %ecx
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x479b2
vmovss (%rax,%rdx,4), %xmm1
incq %rdx
vfmadd231ss %xmm1, %xmm1, %xmm0 # xmm0 = (xmm1 * xmm1) + xmm0
jmp 0x4799e
movq 0x18(%rdi), %r8
movslq %esi, %rdx
movq 0x10(%rdi), %rsi
movl (%r8,%rdx,4), %edx
xorl %r8d, %r8d
... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::quadratic_cost_type<float>::make_loo_norm(int) | void make_loo_norm(int n)
{
Float div =
*std::max_element(linear_elements.get(), linear_elements.get() + n);
for (int i = 0, e = indices[n]; i != e; ++i)
div = std::max(quadratic_elements[i].factor, div);
if (std::isnormal(div)) {
for (int i = 0; i != n; +... | pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
movslq %esi, %r14
movl %esi, %ebp
leaq (%rdi,%r14,4), %rsi
callq 0x3a3e5
movq 0x18(%rbx), %rsi
vmovss (%rax), %xmm0
movq 0x10(%rbx), %rcx
xorl %edx, %edx
movl (%rsi,%r14,4), %eax
cmpq %rdx, %rax
je 0x47a64
vmaxss (%rcx,%rdx,8), %xmm0, %xmm0
incq %rdx... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::quadratic_cost_type<float>::min(int) const | Float min(int n) const noexcept
{
Float min = std::numeric_limits<Float>::max();
for (int i = 0; i != n; ++i)
if (linear_elements[i])
min = std::min(min, std::abs(linear_elements[i]));
for (int i = 0, e = indices[n]; i != e; ++i)
if (quadratic_elemen... | vmovss 0x411556(%rip), %xmm0 # 0x459acc
vbroadcastss 0x411549(%rip), %xmm1 # 0x459ac8
movq 0x8(%rdi), %rax
vxorps %xmm2, %xmm2, %xmm2
movl %esi, %ecx
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x485b6
vmovss (%rax,%rdx,4), %xmm3
incq %rdx
vandps %xmm1, %xmm3, %xmm4
vcmpneqps %xmm2, %xmm3, %k1
vcmpltps %xmm0, %xmm4, %k0
kandw... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::best_solution_recorder<baryonyx::itm::quadratic_cost_type<float>, float, baryonyx::itm::maximize_tag>::mutation(baryonyx::itm::local_context&, baryonyx::bit_array&) | void mutation(local_context& ctx, bit_array& x)
{
if (ctx.value_p_dist.mean() == 0.0 && ctx.value_p_dist.stddev() == 0.0)
return;
double val_p, var_p;
do
var_p = ctx.variable_p_dist(ctx.rng);
while (var_p <= 0.0 || var_p >= 1.0);
do
val_... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
vmovsd 0x48(%rsi), %xmm0
vxorpd %xmm1, %xmm1, %xmm1
movq %rdx, %rbx
movq %rsi, %r14
vucomisd %xmm1, %xmm0
jne 0x48702
jp 0x48702
vmovsd 0x50(%r14), %xmm0
vucomisd %xmm1, %xmm0
jne 0x48702
jp 0x48702
addq $0x28, %rsp
popq %rbx
popq %r12
p... | /quesnel[P]baryonyx/lib/src/itm-optimizer-common.hpp |
bool baryonyx::itm::is_valid_constraint<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>>, baryonyx::bit_array>(baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>... | bool
is_valid_constraint(const Solver& slv, int k, const Xtype& x)
{
typename sparse_matrix<int>::const_row_iterator it, et;
std::tie(it, et) = slv.ap.row(k);
int v = 0;
for (; it != et; ++it)
v += slv.factor(it->value) * x[it->column];
return slv.bound_min(k) <= v && v <= slv.bound_max(k... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r14
movl %esi, %edx
leaq 0x8(%rdi), %rsi
leaq 0x8(%rsp), %r15
movq %rdi, %rbx
movl %edx, 0x4(%rsp)
movq %r15, %rdi
callq 0x3c868
movq (%r15), %r12
movq 0x8(%r15), %r13
xorl %r15d, %r15d
cmpq %r12, %r13
je 0x48cde
movslq (%r13... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
bool baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>>::compute_update_row<baryonyx::bit_array, std::reverse_iterator<__gnu_cxx::__normal_iterator<int const*, std::vector<int, std::allocator<int>>>>>(baryonyx::bit_array&, std::reverse_itera... | bool compute_update_row(Xtype& x,
Iterator first,
Iterator last,
Float kappa,
Float delta,
Float theta)
{
for (; first != last; ++first) {
auto k = constrai... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
vmovss %xmm1, 0xc(%rsp)
vmovss 0x410d99(%rip), %xmm1 # 0x459ac4
movq (%rdx), %rax
leaq 0x8(%rdi), %r15
vmovss %xmm2, 0x3c(%rsp)
movq %rcx, 0x60(%rsp)
movq %rsi, %r13
movq %rdi, %r12
movq %rdx, 0x58(%rsp)
movq %rdi, 0x20(%rsp)
movq %rsi... | /quesnel[P]baryonyx/lib/src/random-solver.cpp |
bool baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>>::compute_update_row<baryonyx::bit_array, __gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int>>>>(baryonyx::bit_array&, __gnu_cxx::__normal_iterator<int*, std::vector<... | bool compute_update_row(Xtype& x,
Iterator first,
Iterator last,
Float kappa,
Float delta,
Float theta)
{
for (; first != last; ++first) {
auto k = constrai... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
vmovss %xmm1, 0xc(%rsp)
vmovss 0x41092d(%rip), %xmm1 # 0x459ac4
leaq 0x8(%rdi), %r15
vmovss %xmm2, 0x3c(%rsp)
movq %rcx, 0x58(%rsp)
movq %rsi, %r13
movq %rdi, %r12
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %r15, 0x50(%rsp)
vsubs... | /quesnel[P]baryonyx/lib/src/random-solver.cpp |
bool baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>>::compute_update_row<baryonyx::bit_array, __gnu_cxx::__normal_iterator<std::pair<int, int> const*, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int>>>>>(baryonyx::bit_a... | bool compute_update_row(Xtype& x,
Iterator first,
Iterator last,
Float kappa,
Float delta,
Float theta)
{
for (; first != last; ++first) {
auto k = constrai... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
vmovss %xmm1, 0xc(%rsp)
vmovss 0x4104cd(%rip), %xmm1 # 0x459ac4
leaq 0x8(%rdi), %r15
vmovss %xmm2, 0x3c(%rsp)
movq %rcx, 0x58(%rsp)
movq %rsi, %r13
movq %rdi, %r12
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %r15, 0x50(%rsp)
vsubs... | /quesnel[P]baryonyx/lib/src/random-solver.cpp |
int baryonyx::itm::compute_order::infeasibility_local_compute_violated_constraints<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>>, baryonyx::bit_array>(baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag... | int infeasibility_local_compute_violated_constraints(Solver& solver,
const Xtype& x)
{
m_order.clear();
for (int k = 0, e = solver.m; k != e; ++k) {
sparse_matrix<int>::const_row_iterator it, et;
std::tie(it, et) = sol... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq 0x18(%rdi), %rax
movq %rdx, %r14
movq %rsi, %r15
cmpq %rax, 0x20(%rdi)
je 0x49a5a
movq %rax, 0x20(%rdi)
leaq 0x18(%rdi), %rax
leaq 0x8(%r15), %rcx
xorl %r12d, %r12d
movq %rdi, 0x20(%rsp)
movq %rax, 0x10(%rsp)
movl 0x80(%r15), %eax
m... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
bool baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>>::compute_update_row<baryonyx::bit_array, __gnu_cxx::__normal_iterator<int const*, std::vector<int, std::allocator<int>>>>(baryonyx::bit_array&, __gnu_cxx::__normal_iterator<int const*, ... | bool compute_update_row(Xtype& x,
Iterator first,
Iterator last,
Float kappa,
Float delta,
Float theta)
{
for (; first != last; ++first) {
auto k = constrai... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
vmovss %xmm1, 0xc(%rsp)
vmovss 0x40ff6b(%rip), %xmm1 # 0x459ac4
leaq 0x8(%rdi), %r15
vmovss %xmm2, 0x3c(%rsp)
movq %rcx, 0x58(%rsp)
movq %rsi, %r13
movq %rdi, %r12
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %r15, 0x50(%rsp)
vsubs... | /quesnel[P]baryonyx/lib/src/random-solver.cpp |
int baryonyx::itm::compute_order::local_compute_violated_constraints<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>>, baryonyx::bit_array>(baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag, baryonyx::it... | int local_compute_violated_constraints(const Solver& slv, const Xtype& x)
{
int remaining = 0;
for (int k = 0; k != slv.m; ++k)
if (!is_valid_constraint(slv, k, x))
++remaining;
return remaining;
} | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
xorl %ebp, %ebp
xorl %r15d, %r15d
cmpl 0x80(%r14), %r15d
je 0x49fcf
movq %r14, %rdi
movl %r15d, %esi
movq %rbx, %rdx
callq 0x48c81
xorb $0x1, %al
incl %r15d
movzbl %al, %eax
addl %eax, %ebp
jmp 0x49fac
movl %ebp, %eax
addq $0x8, %rsp... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
void baryonyx::itm::random_shuffle_unique<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>>::rc_data*>(baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>>::rc_dat... | inline void
random_shuffle_unique(iteratorT begin,
iteratorT end,
random_engine& rng) noexcept
{
auto ret = begin++;
for (; begin != end; ++begin) {
if (ret->value != begin->value) {
std::shuffle(ret, begin, rng);
ret = begin;
}... | pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
leaq 0xc(%rdi), %rsi
cmpq %r14, %rsi
je 0x4a0dc
vmovss (%rdi), %xmm0
leaq 0xc(%rsi), %r15
vucomiss (%rsi), %xmm0
movq %r15, %rsi
jne 0x4a0c8
jnp 0x4a0b0
addq $-0xc, %r15
movq %r15, %rsi
movq %rbx, %rdx
callq 0x4a672
movq %r15, %rdi
jmp 0x4a0ac
movq %rbx, ... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::storage<baryonyx::itm::quadratic_cost_type<float>, baryonyx::itm::maximize_tag>::can_be_inserted(unsigned long, double) const | bool can_be_inserted([[maybe_unused]] const std::size_t hash,
const double value) const noexcept
{
m_indices_reader lock(m_indices_mutex);
for (int i = 0; i != m_size; ++i)
if (m_data[i].remaining_constraints == 0 &&
m_data[i].value == value && m... | pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
vmovsd %xmm0, (%rsp)
movq %rsi, %rbx
movq %rdi, %r14
movb $0x1, 0x10(%rsp)
callq 0x3c460
movl 0x98(%r14), %eax
vmovsd (%rsp), %xmm1
movq 0x50(%r14), %rcx
xorl %edx, %edx
imulq $0x38, %rax, %rax
cmpq %rdx, %rax
je 0x4bb68
cmpl $0x0, 0x30(%rcx,%rdx)
jne 0x4bb62
... | /quesnel[P]baryonyx/lib/src/itm-optimizer-common.hpp |
baryonyx::itm::storage<baryonyx::itm::quadratic_cost_type<float>, baryonyx::itm::maximize_tag>::insert(baryonyx::itm::local_context&, baryonyx::bit_array const&, unsigned long, int, double, long) | void insert(local_context& ctx,
const bit_array& x,
const std::size_t hash,
const int remaining_constraints,
const double duration,
const long int loop) noexcept
{
to_log(stdout,
5u,
"- insert advan... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq 0x5f123f(%rip), %r12 # 0x63cfc8
movq %rdi, %rbx
leaq 0x20(%rsp), %rax
leaq 0xc(%rsp), %r10
leaq 0x18(%rsp), %r11
leaq 0x10(%rsp), %r13
movq %rdx, %r14
movq %rsi, %r15
movq %rcx, (%rax)
movl %r8d, (%r10)
vmovsd %xmm0, (%r11)
movq ... | /quesnel[P]baryonyx/lib/src/itm-optimizer-common.hpp |
baryonyx::itm::storage<baryonyx::itm::quadratic_cost_type<float>, baryonyx::itm::maximize_tag>::get_best(int&, double&, double&, long&) const | void get_best(int& constraints_remaining,
double& value,
double& duration,
long int& loop) const noexcept
{
m_indices_reader lock(m_indices_mutex);
int id = m_indices.front();
constraints_remaining = m_data[id].remaining_constraints;
... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, (%rsp)
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
movb $0x1, 0x8(%rsp)
callq 0x3c460
movq 0x38(%r13), %rax
movq 0x50(%r13), %rcx
movq %rsp, %rdi
movslq (%rax), %rax
imulq $0x38, %rax, %rax
movl 0x30(%r... | /quesnel[P]baryonyx/lib/src/itm-optimizer-common.hpp |
baryonyx::itm::storage<baryonyx::itm::quadratic_cost_type<float>, baryonyx::itm::maximize_tag>::show_population(baryonyx::context const&) const | void show_population(const context& ctx) const
{
info(ctx, " Population {}:\n", m_indices.size());
for (int i = 0; i != m_size; ++i)
info(ctx,
" - {}: value {} constraints {} hash {}\n",
m_indices[i],
m_data[m_indices[i]].value,
... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq 0x40(%rdi), %rax
movq %rsi, %rbx
leaq 0x8(%rsp), %rdx
leaq 0x40d2fd(%rip), %rsi # 0x45a53d
movq %rdi, %r14
subq 0x38(%rdi), %rax
movq %rbx, %rdi
sarq $0x2, %rax
movq %rax, (%rdx)
callq 0x41545
leaq 0x40d2f1(%rip), %r15 # 0x45a54e
xorl %r... | /quesnel[P]baryonyx/lib/src/itm-optimizer-common.hpp |
baryonyx::itm::solver_functor<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>>, float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>, baryonyx::pnm_observer>::operator()(std::vector<baryonyx::itm::merged_constraint... | result operator()(const std::vector<merged_constraint>& constraints,
int variables,
const Cost& original_costs,
double cost_constant)
{
result r;
bit_array x(variables);
int best_remaining = INT_MAX;
auto& p = m_ctx... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3b8, %rsp # imm = 0x3B8
vmovsd %xmm0, 0x58(%rsp)
vxorps %xmm0, %xmm0, %xmm0
movq %r8, %r13
movl %ecx, %ebx
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, 0x18(%rsp)
vmovups %zmm0, 0x58(%rdi)
vmovups %zmm0, 0x40(%rdi)
vmovups %zmm0, (%rdi)
... | /quesnel[P]baryonyx/lib/src/itm-solver-common.hpp |
baryonyx::itm::solver_functor<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>>, float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>, baryonyx::none_observer>::operator()(std::vector<baryonyx::itm::merged_constrain... | result operator()(const std::vector<merged_constraint>& constraints,
int variables,
const Cost& original_costs,
double cost_constant)
{
result r;
bit_array x(variables);
int best_remaining = INT_MAX;
auto& p = m_ctx... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x178, %rsp # imm = 0x178
vmovsd %xmm0, 0x58(%rsp)
vxorps %xmm0, %xmm0, %xmm0
movq %r8, %r13
movl %ecx, %ebx
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, 0x18(%rsp)
vmovups %zmm0, 0x58(%rdi)
vmovups %zmm0, 0x40(%rdi)
vmovups %zmm0, (%rdi)
... | /quesnel[P]baryonyx/lib/src/itm-solver-common.hpp |
baryonyx::itm::solver_functor<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>>, float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>, baryonyx::pnm_observer>::store_if_better(baryonyx::bit_array const&, double, lon... | inline bool
is_better_solution(Float lhs, Float rhs) noexcept
{
if constexpr (std::is_same_v<Mode, minimize_tag>)
return lhs < rhs;
else
return lhs > rhs;
} | vucomisd 0x30(%rdi), %xmm0
jbe 0x4e750
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
addq $0x20, %rdi
movq %rdx, %rbx
vmovsd %xmm0, (%rsp)
callq 0x36a44
movq %r14, %rdi
callq 0x4e7ca
vmovsd (%rsp), %xmm1
vmovsd %xmm0, 0x38(%r14)
movq %rbx, 0x48(%r14)
andl $0x0, 0x50(%r14)
vmovsd %xmm1, 0x30(%r14)
addq $0x8, %rsp
pop... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::solver_functor<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>>, float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>, baryonyx::pnm_observer>::is_timelimit_reached() | bool is_timelimit_reached()
{
m_end = std::chrono::steady_clock::now();
return is_time_limit(m_ctx.parameters.time_limit, m_begin, m_end);
} | pushq %rbx
movq %rdi, %rbx
callq 0xb5a0
movq %rax, 0x8(%rbx)
vxorpd %xmm2, %xmm2, %xmm2
movq 0x10(%rbx), %rcx
subq (%rbx), %rax
vmovsd (%rcx), %xmm0
vcvtsi2sd %rax, %xmm1, %xmm1
vdivsd 0x40b2cd(%rip), %xmm1, %xmm1 # 0x459a80
vcmpnlepd %xmm2, %xmm0, %k1
vcmpltpd %xmm1, %xmm0, %k0 {%k1}
kmovd %k0, %eax
andb $0x1, %al
pop... | /quesnel[P]baryonyx/lib/src/itm-solver-common.hpp |
baryonyx::itm::solver_functor<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>>, float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>, baryonyx::file_observer>::store_if_better(baryonyx::bit_array const&, double, lo... | inline bool
is_better_solution(Float lhs, Float rhs) noexcept
{
if constexpr (std::is_same_v<Mode, minimize_tag>)
return lhs < rhs;
else
return lhs > rhs;
} | vucomisd 0x30(%rdi), %xmm0
jbe 0x4e832
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
addq $0x20, %rdi
movq %rdx, %rbx
vmovsd %xmm0, (%rsp)
callq 0x36a44
movq %r14, %rdi
callq 0x4e8ac
vmovsd (%rsp), %xmm1
vmovsd %xmm0, 0x38(%r14)
movq %rbx, 0x48(%r14)
andl $0x0, 0x50(%r14)
vmovsd %xmm1, 0x30(%r14)
addq $0x8, %rsp
pop... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::solver_functor<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>>, float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>, baryonyx::file_observer>::is_timelimit_reached() | bool is_timelimit_reached()
{
m_end = std::chrono::steady_clock::now();
return is_time_limit(m_ctx.parameters.time_limit, m_begin, m_end);
} | pushq %rbx
movq %rdi, %rbx
callq 0xb5a0
movq %rax, 0x8(%rbx)
vxorpd %xmm2, %xmm2, %xmm2
movq 0x10(%rbx), %rcx
subq (%rbx), %rax
vmovsd (%rcx), %xmm0
vcvtsi2sd %rax, %xmm1, %xmm1
vdivsd 0x40b1eb(%rip), %xmm1, %xmm1 # 0x459a80
vcmpnlepd %xmm2, %xmm0, %k1
vcmpltpd %xmm1, %xmm0, %k0 {%k1}
kmovd %k0, %eax
andb $0x1, %al
pop... | /quesnel[P]baryonyx/lib/src/itm-solver-common.hpp |
baryonyx::itm::solver_functor<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>>, float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>, baryonyx::none_observer>::store_if_better(baryonyx::bit_array const&, double, lo... | inline bool
is_better_solution(Float lhs, Float rhs) noexcept
{
if constexpr (std::is_same_v<Mode, minimize_tag>)
return lhs < rhs;
else
return lhs > rhs;
} | vucomisd 0x30(%rdi), %xmm0
jbe 0x4e914
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
addq $0x20, %rdi
movq %rdx, %rbx
vmovsd %xmm0, (%rsp)
callq 0x36a44
movq %r14, %rdi
callq 0x4e98e
vmovsd (%rsp), %xmm1
vmovsd %xmm0, 0x38(%r14)
movq %rbx, 0x48(%r14)
andl $0x0, 0x50(%r14)
vmovsd %xmm1, 0x30(%r14)
addq $0x8, %rsp
pop... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::solver_functor<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>>, float, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<float>, baryonyx::none_observer>::is_timelimit_reached() | bool is_timelimit_reached()
{
m_end = std::chrono::steady_clock::now();
return is_time_limit(m_ctx.parameters.time_limit, m_begin, m_end);
} | pushq %rbx
movq %rdi, %rbx
callq 0xb5a0
movq %rax, 0x8(%rbx)
vxorpd %xmm2, %xmm2, %xmm2
movq 0x10(%rbx), %rcx
subq (%rbx), %rax
vmovsd (%rcx), %xmm0
vcvtsi2sd %rax, %xmm1, %xmm1
vdivsd 0x40b109(%rip), %xmm1, %xmm1 # 0x459a80
vcmpnlepd %xmm2, %xmm0, %k1
vcmpltpd %xmm1, %xmm0, %k0 {%k1}
kmovd %k0, %eax
andb $0x1, %al
pop... | /quesnel[P]baryonyx/lib/src/itm-solver-common.hpp |
baryonyx::result baryonyx::itm::optimize_problem<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::minimize_tag, baryonyx::itm::default_cost_type<float>>, float, baryonyx::itm::minimize_tag, baryonyx::itm::default_cost_type<float>>(baryonyx::context const&, baryonyx::problem const&) | inline result
optimize_problem(const context& ctx, const problem& pb)
{
result r;
if (ctx.start)
ctx.start(ctx.parameters);
auto constraints{ make_merged_constraints(ctx, pb) };
if (constraints.empty() || pb.vars.values.empty()) {
r.status = result_status::success;
r.solutions.... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp # imm = 0x188
vxorpd %xmm0, %xmm0, %xmm0
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %r12
vmovupd %zmm0, 0x58(%rdi)
vmovupd %zmm0, 0x40(%rdi)
vmovupd %zmm0, (%rdi)
movq $0x7fffffff, 0x98(%rdi) # imm = 0x7FFFFFFF
movl $0x2, 0xa... | /quesnel[P]baryonyx/lib/src/itm-optimizer-common.hpp |
baryonyx::result baryonyx::itm::solve_problem<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::minimize_tag, baryonyx::itm::default_cost_type<float>>, float, baryonyx::itm::minimize_tag, baryonyx::itm::default_cost_type<float>>(baryonyx::context const&, baryonyx::problem const&) | inline result
solve_problem(const context& ctx, const problem& pb)
{
if (ctx.start)
ctx.start(ctx.parameters);
result ret;
auto variables = length(pb.vars.values);
auto constraints{ make_merged_constraints(ctx, pb) };
if (!constraints.empty() && !pb.vars.values.empty()) {
random_e... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x130, %rsp # imm = 0x130
cmpq $0x0, 0x128(%rsi)
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
je 0x4f03c
leaq 0x118(%r14), %rdi
movq %r14, %rsi
callq 0x3527e
vxorps %xmm0, %xmm0, %xmm0
vmovups %zmm0, 0x58(%rbx)
vmovups %zmm0, 0x40(%rbx)
vmovups ... | /quesnel[P]baryonyx/lib/src/itm-solver-common.hpp |
void baryonyx::convert<baryonyx::itm::minimize_tag>(baryonyx::raw_result<baryonyx::itm::minimize_tag> const&, baryonyx::solution&, int) | void
convert(const raw_result<Mode>& source, solution& sol, int variables)
{
sol.value = source.value;
sol.variables.resize(variables);
for (int i = 0; i != variables; ++i)
sol.variables[i] = static_cast<var_value>(source.x[i]);
} | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
vmovsd 0x10(%rdi), %xmm0
movslq %edx, %r15
movq %rdi, %r14
movq %rsi, %rbx
movq %rsi, %rdi
vmovsd %xmm0, 0x18(%rsi)
movq %r15, %rsi
callq 0x41362
movl %r15d, %r12d
xorl %r15d, %r15d
cmpq %r15, %r12
je 0x4f4cd
movq %r14, %rdi
movl %r15d, %esi
callq 0x3664a
movq (%rb... | /quesnel[P]baryonyx/lib/src/result.hpp |
baryonyx::itm::storage<baryonyx::itm::default_cost_type<float>, baryonyx::itm::minimize_tag>::storage(std::linear_congruential_engine<unsigned long, 16807ul, 0ul, 2147483647ul>&, baryonyx::itm::default_cost_type<float> const&, double, int, int, std::vector<baryonyx::itm::merged_constraint, std::allocator<baryonyx::itm:... | storage(random_engine& rng,
const Cost& costs_,
const double cost_constant_,
const int population_size,
const int variables,
const std::vector<merged_constraint>& constraints_)
: m_indices(population_size)
, m_data(population_size)
, m_baster... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
vmovsd %xmm0, 0x40(%rsp)
vxorpd %xmm0, %xmm0, %xmm0
movq %rdx, 0x18(%rsp)
movq %rdi, %r15
movslq %ecx, %r12
leaq 0x58(%rsp), %rdx
movq %rsi, %r13
movq %r9, 0x28(%rsp)
movl %r8d, %ebp
movl %ecx, %ebx
vmovupd %ymm0, 0x18(%rdi)
vmovupd %ymm... | /quesnel[P]baryonyx/lib/src/itm-optimizer-common.hpp |
void baryonyx::itm::init_with_bastert<baryonyx::itm::default_cost_type<float>, baryonyx::itm::minimize_tag>(baryonyx::bit_array&, baryonyx::itm::default_cost_type<float> const&, int, int) | void
init_with_bastert(bit_array& x,
const Cost& c,
const int variables,
const int value_if_0) noexcept
{
for (int i = 0; i != variables; ++i)
if (init_x<Mode>(c[i], value_if_0))
x.set(i);
else
x.unset(i);
} | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %ecx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movl %edx, %r13d
xorl %r12d, %r12d
cmpq %r12, %r13
je 0x4f9bf
movq 0x8(%r14), %rcx
testl %ebx, %ebx
vxorps %xmm1, %xmm1, %xmm1
setne %al
vmovss (%rcx,%r12,4), %xmm0
vucomiss %xmm0, %xmm1
setnp %dl
sete %cl
vucomiss %x... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
void baryonyx::itm::init_with_pre_solve<baryonyx::itm::default_cost_type<float>, baryonyx::itm::minimize_tag>(baryonyx::bit_array&, baryonyx::bit_array&, std::linear_congruential_engine<unsigned long, 16807ul, 0ul, 2147483647ul>&, baryonyx::itm::default_cost_type<float> const&, std::vector<baryonyx::itm::merged_constra... | void
init_with_pre_solve(bit_array& x_pessimistic,
bit_array& x_optimistic,
random_engine& rng,
const Cost& c,
const std::vector<merged_constraint>& constraints,
const double init_random) noexcept
{
int max_length = ... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rcx, 0x38(%rsp)
movq (%r8), %rax
movq 0x8(%r8), %rcx
movq %rdx, 0x30(%rsp)
vmovsd %xmm0, 0x48(%rsp)
movq %r8, %r13
xorl %edx, %edx
movq %rsi, 0x28(%rsp)
movq %rdi, 0x20(%rsp)
cmpq %rcx, %rax
je 0x4fa1a
movq 0x8(%rax), %rsi
subq (%r... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::optimize_functor<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::minimize_tag, baryonyx::itm::default_cost_type<float>>, float, baryonyx::itm::minimize_tag, baryonyx::itm::default_cost_type<float>>::operator()(std::atomic<bool> const&, baryonyx::itm::best_solution_recorder<baryon... | void operator()(const std::atomic_bool& stop_task,
best_solution_recorder<Cost, Float, Mode>& best_recorder,
const std::vector<merged_constraint>& constraints,
int variables,
const Cost& original_costs,
double cost_const... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp # imm = 0x158
movq %rdi, %rbp
leaq 0x20(%rsp), %rdi
movq %rsi, %r15
movl %r8d, %esi
vmovsd %xmm0, 0x60(%rsp)
movq %r9, %r12
movl %r8d, %ebx
movq %rcx, %r14
movq %rdx, 0x30(%rsp)
callq 0x368ae
movq (%rbp), %r13
movq %rbp, 0x78... | /quesnel[P]baryonyx/lib/src/itm-optimizer-common.hpp |
baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::minimize_tag, baryonyx::itm::default_cost_type<float>>::solver_random_inequalities_101coeff(std::linear_congruential_engine<unsigned long, 16807ul, 0ul, 2147483647ul>&, int, int, baryonyx::itm::default_cost_type<float> const&, std::vector<baryonyx... | solver_random_inequalities_101coeff(
random_engine& rng_,
int m_,
int n_,
const cost_type& c_,
const std::vector<merged_constraint>& csts)
: rng(rng_)
, ap(csts, m_, n_)
, A(std::make_unique<int[]>(ap.size()))
, R(std::make_unique<rc_data[]>(compute_reduced_costs_ve... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
leaq 0x8(%rdi), %r13
movq %rsi, (%rdi)
movq %rdi, %r15
movq %r9, %r12
movq %r8, 0x20(%rsp)
movl %edx, %r14d
movq %r9, %rsi
movl %ecx, 0x4(%rsp)
movq %r13, %rdi
callq 0x3a4ca
movl 0x30(%r15), %esi
leaq 0x48(%r15), %rbx
movq %rbx, %rdi
mov... | /quesnel[P]baryonyx/lib/src/random-solver.cpp |
baryonyx::itm::best_solution_recorder<baryonyx::itm::default_cost_type<float>, float, baryonyx::itm::minimize_tag>::reinit(baryonyx::itm::local_context&, bool, double, double, baryonyx::bit_array&) | double reinit(local_context& ctx,
const bool /*is_solution*/,
const double kappa_min,
const double kappa_max,
bit_array& x)
{
to_log(stdout, 3u, "- reinitinialization thread {}.\n", ctx.thread_id);
double kappa = kappa_min;
... | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0x5eb5a4(%rip), %r12 # 0x63cfc8
movq %rdi, %r15
movq %rcx, %rbx
leaq 0x40892a(%rip), %rcx # 0x45a35b
vmovsd %xmm1, 0x8(%rsp)
vmovsd %xmm0, 0x10(%rsp)
movq %rsi, %r14
leaq 0xa0(%rsi), %r8
movq (%r12), %rdi
pushq $0x3
popq %rsi
pushq $0x20
popq %rdx
... | /quesnel[P]baryonyx/lib/src/itm-optimizer-common.hpp |
void baryonyx::itm::compute_order::init<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::minimize_tag, baryonyx::itm::default_cost_type<float>>, baryonyx::bit_array>(baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::minimize_tag, baryonyx::itm::default_cost_type<float>> co... | void init(const Solver& s, const Xtype& x)
{
switch (order) {
case solver_parameters::constraint_order::infeasibility_decr:
case solver_parameters::constraint_order::infeasibility_incr:
infeasibility_local_compute_violated_constraints(s, x);
break;
case solver... | movl 0x30(%rdi), %ecx
movq %rdi, %rax
leal -0x3(%rcx), %edi
cmpl $0x2, %edi
jae 0x51b28
movq %rax, %rdi
jmp 0x525e8
cmpl $0x7, %ecx
jne 0x51b45
movq (%rax), %rcx
movq 0x8(%rax), %rax
xorl %edx, %edx
cmpq %rax, %rcx
je 0x51b53
movl %edx, (%rcx)
incl %edx
addq $0x4, %rcx
jmp 0x51b36
movq %rsi, %rdi
movq %rdx, %rsi
movq %... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
int baryonyx::itm::compute_order::run<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::minimize_tag, baryonyx::itm::default_cost_type<float>>, baryonyx::bit_array, float>(baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::minimize_tag, baryonyx::itm::default_cost_type<float... | int run(Solver& solver,
Xtype& x,
random_engine& rng,
Float kappa,
Float delta,
Float theta)
{
bool pi_changed = false;
int remaining = 0;
switch (order) {
case solver_parameters::constraint_order::reversing:
so... | pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movl 0x30(%rdi), %eax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
decl %eax
cmpl $0x6, %eax
ja 0x51c93
leaq 0x40801d(%rip), %rdx # 0x459b98
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
movq 0x8(%r14), %rax
leaq 0x18(%rsp), %rdx
leaq 0x10(%rsp), %rcx
movq... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::best_solution_recorder<baryonyx::itm::default_cost_type<float>, float, baryonyx::itm::minimize_tag>::try_update(baryonyx::itm::local_context&, baryonyx::bit_array const&, double, long) | void try_update(local_context& ctx,
const bit_array& solution,
const double value,
const long int loop)
{
auto hash = bit_array_hash()(solution);
if (m_storage.can_be_inserted(hash, value)) {
const auto end = std::chrono::stead... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r13
leaq 0xf(%rsp), %rdi
movq %rsi, %r15
movq %rdx, %rsi
movq %rcx, %rbx
vmovsd %xmm0, 0x10(%rsp)
movq %rdx, %r14
callq 0x3775a
vmovsd 0x10(%rsp), %xmm0
leaq 0x8(%r13), %rbp
movq %rax, %r12
movq %rax, %rsi
movq %rbp, %rdi
cal... | /quesnel[P]baryonyx/lib/src/itm-optimizer-common.hpp |
baryonyx::itm::best_solution_recorder<baryonyx::itm::default_cost_type<float>, float, baryonyx::itm::minimize_tag>::try_advance(baryonyx::itm::local_context&, baryonyx::bit_array const&, int, long) | void try_advance(local_context& ctx,
const bit_array& solution,
const int remaining_constraints,
const long int loop)
{
auto hash = bit_array_hash()(solution);
if (m_storage.can_be_inserted(hash, remaining_constraints)) {
co... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r13
leaq 0xf(%rsp), %rdi
movq %rsi, %r15
movq %rdx, %rsi
movq %r8, 0x10(%rsp)
movl %ecx, %ebp
movq %rdx, %r14
callq 0x3775a
leaq 0x8(%r13), %rbx
movq %rax, %r12
movq %rax, %rsi
movl %ebp, %edx
movq %rbx, %rdi
callq 0x55776
te... | /quesnel[P]baryonyx/lib/src/itm-optimizer-common.hpp |
int baryonyx::itm::compute_order::push_and_run<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::minimize_tag, baryonyx::itm::default_cost_type<float>>, baryonyx::bit_array, float>(baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::minimize_tag, baryonyx::itm::default_cost_t... | int push_and_run(Solver& solver,
Xtype& x,
random_engine& rng,
Float kappa,
Float delta,
Float theta,
Float objective_amplifier)
{
bool pi_changed = 0;
int remaining = 0;
... | pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movl 0x30(%rdi), %eax
cmpb $0x1, 0x34(%rdi)
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
jne 0x51e96
xorl %esi, %esi
leal 0x1(%rax), %edx
cmpl $0x7, %eax
cmovll %edx, %esi
movl %esi, %eax
movl %esi, 0x30(%r14)
decl %eax
cmpl $0x6, %eax
ja 0x52007
leaq 0x407d0c(%rip),... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::best_solution_recorder<baryonyx::itm::default_cost_type<float>, float, baryonyx::itm::minimize_tag>::mutation(baryonyx::itm::local_context&, baryonyx::bit_array&) | void mutation(local_context& ctx, bit_array& x)
{
if (ctx.value_p_dist.mean() == 0.0 && ctx.value_p_dist.stddev() == 0.0)
return;
double val_p, var_p;
do
var_p = ctx.variable_p_dist(ctx.rng);
while (var_p <= 0.0 || var_p >= 1.0);
do
val_... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
vmovsd 0x48(%rsi), %xmm0
vxorpd %xmm1, %xmm1, %xmm1
movq %rdx, %rbx
movq %rsi, %r14
vucomisd %xmm1, %xmm0
jne 0x521d6
jp 0x521d6
vmovsd 0x50(%r14), %xmm0
vucomisd %xmm1, %xmm0
jne 0x521d6
jp 0x521d6
addq $0x28, %rsp
popq %rbx
popq %r12
p... | /quesnel[P]baryonyx/lib/src/itm-optimizer-common.hpp |
baryonyx::itm::storage<baryonyx::itm::default_cost_type<float>, baryonyx::itm::minimize_tag>::crossover(baryonyx::itm::local_context&, baryonyx::bit_array&) | void crossover(local_context& ctx, bit_array& x)
{
m_indices_reader lock(m_indices_mutex);
if (ctx.crossover_bastert_insertion(ctx.rng)) {
int first = m_indices[choose_a_solution(ctx)];
std::bernoulli_distribution b(0.5);
if (b(ctx.rng)) {
if (b(... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, 0x10(%rsp)
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movb $0x1, 0x18(%rsp)
callq 0x3c460
leaq 0x80(%r15), %rdi
movq %r15, %rsi
callq 0x36254
testb %al, %al
je 0x523a3
movq %rbx, %rdi
movq %r15, %rsi
callq 0x52522
movq 0x38(%rbx), %... | /quesnel[P]baryonyx/lib/src/itm-optimizer-common.hpp |
baryonyx::itm::storage<baryonyx::itm::default_cost_type<float>, baryonyx::itm::minimize_tag>::crossover(baryonyx::itm::local_context&, baryonyx::bit_array&, baryonyx::bit_array const&, baryonyx::bit_array const&) | void crossover(local_context& ctx,
bit_array& x,
const bit_array& first,
const bit_array& second)
{
const auto block_size = x.block_size();
for (int i = 0; i != block_size; ++i) {
const auto x1 = first.block(i);
const a... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl 0x4(%rdx), %r15d
leaq 0x70(%rsi), %r13
movq %r8, 0x10(%rsp)
movq %rcx, 0x8(%rsp)
movq %rsi, %r12
xorl %ebp, %ebp
movq %rdx, (%rsp)
cmpq %rbp, %r15
je 0x525d9
movq 0x8(%rsp), %rdi
movl %ebp, %esi
callq 0x377b0
movq 0x10(%rsp), %rdi
m... | /quesnel[P]baryonyx/lib/src/itm-optimizer-common.hpp |
int baryonyx::itm::compute_order::infeasibility_local_compute_violated_constraints<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::minimize_tag, baryonyx::itm::default_cost_type<float>> const, baryonyx::bit_array>(baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::minimize... | int infeasibility_local_compute_violated_constraints(Solver& solver,
const Xtype& x)
{
m_order.clear();
for (int k = 0, e = solver.m; k != e; ++k) {
sparse_matrix<int>::const_row_iterator it, et;
std::tie(it, et) = sol... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq 0x18(%rdi), %rax
movq %rdx, %r14
movq %rsi, %r15
cmpq %rax, 0x20(%rdi)
je 0x5260a
movq %rax, 0x20(%rdi)
leaq 0x18(%rdi), %rax
leaq 0x8(%r15), %rcx
xorl %r12d, %r12d
movq %rdi, 0x20(%rsp)
movq %rax, 0x10(%rsp)
movl 0x80(%r15), %eax
m... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
int baryonyx::itm::compute_violated_constraints<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::minimize_tag, baryonyx::itm::default_cost_type<float>>, baryonyx::bit_array>(baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::minimize_tag, baryonyx::itm::default_cost_type<fl... | int
compute_violated_constraints(const Solver& slv,
const Xtype& x,
std::vector<int>& out)
{
out.clear();
for (int k = 0; k != slv.m; ++k)
if (!is_valid_constraint(slv, k, x))
out.emplace_back(k);
return length(out);
} | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq (%rdx), %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
cmpq %rax, 0x8(%rdx)
je 0x52708
movq %rax, 0x8(%rbx)
leaq 0x4(%rsp), %r12
xorl %esi, %esi
movl %esi, 0x4(%rsp)
cmpl 0x80(%r15), %esi
je 0x5273e
movq %r15, %rdi
movq %r14, %rdx
callq 0x52755
testb %al... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
bool baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::minimize_tag, baryonyx::itm::default_cost_type<float>>::compute_update_row<baryonyx::bit_array, std::reverse_iterator<__gnu_cxx::__normal_iterator<int const*, std::vector<int, std::allocator<int>>>>>(baryonyx::bit_array&, std::reverse_iterato... | bool compute_update_row(Xtype& x,
Iterator first,
Iterator last,
Float kappa,
Float delta,
Float theta)
{
for (; first != last; ++first) {
auto k = constrai... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
vmovss %xmm1, 0xc(%rsp)
vmovss 0x4072c5(%rip), %xmm1 # 0x459ac4
movq (%rdx), %rax
leaq 0x8(%rdi), %r14
leaq 0x50(%rsp), %r15
movq %rdi, %r12
vmovss %xmm2, 0x3c(%rsp)
movq %rcx, 0x70(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdx, 0x68(%rsp)
mov... | /quesnel[P]baryonyx/lib/src/random-solver.cpp |
int baryonyx::itm::compute_order::infeasibility_local_compute_violated_constraints<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::minimize_tag, baryonyx::itm::default_cost_type<float>>, baryonyx::bit_array>(baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::minimize_tag, ... | int infeasibility_local_compute_violated_constraints(Solver& solver,
const Xtype& x)
{
m_order.clear();
for (int k = 0, e = solver.m; k != e; ++k) {
sparse_matrix<int>::const_row_iterator it, et;
std::tie(it, et) = sol... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq 0x18(%rdi), %rax
movq %rdx, %r14
movq %rsi, %r15
cmpq %rax, 0x20(%rdi)
je 0x53518
movq %rax, 0x20(%rdi)
leaq 0x18(%rdi), %rax
leaq 0x8(%r15), %rcx
xorl %r12d, %r12d
movq %rdi, 0x20(%rsp)
movq %rax, 0x10(%rsp)
movl 0x80(%r15), %eax
m... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
bool baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::minimize_tag, baryonyx::itm::default_cost_type<float>>::compute_update_row<baryonyx::bit_array, __gnu_cxx::__normal_iterator<int const*, std::vector<int, std::allocator<int>>>>(baryonyx::bit_array&, __gnu_cxx::__normal_iterator<int const*, st... | bool compute_update_row(Xtype& x,
Iterator first,
Iterator last,
Float kappa,
Float delta,
Float theta)
{
for (; first != last; ++first) {
auto k = constrai... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
vmovss %xmm1, 0xc(%rsp)
vmovss 0x4064ad(%rip), %xmm1 # 0x459ac4
leaq 0x8(%rdi), %r14
leaq 0x50(%rsp), %r15
movq %rdi, %r12
vmovss %xmm2, 0x3c(%rsp)
movq %rcx, 0x68(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdi, 0x18(%rsp)
movq %r14, 0x60(%rsp)... | /quesnel[P]baryonyx/lib/src/random-solver.cpp |
int baryonyx::itm::compute_order::local_compute_violated_constraints<baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::minimize_tag, baryonyx::itm::default_cost_type<float>>, baryonyx::bit_array>(baryonyx::itm::solver_random_inequalities_101coeff<float, baryonyx::itm::minimize_tag, baryonyx::itm:... | int local_compute_violated_constraints(const Solver& slv, const Xtype& x)
{
int remaining = 0;
for (int k = 0; k != slv.m; ++k)
if (!is_valid_constraint(slv, k, x))
++remaining;
return remaining;
} | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
xorl %ebp, %ebp
xorl %r15d, %r15d
cmpl 0x80(%r14), %r15d
je 0x53a85
movq %r14, %rdi
movl %r15d, %esi
movq %rbx, %rdx
callq 0x52755
xorb $0x1, %al
incl %r15d
movzbl %al, %eax
addl %eax, %ebp
jmp 0x53a62
movl %ebp, %eax
addq $0x8, %rsp... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
void baryonyx::details::ap_pnm_observer::make_observation<double>(baryonyx::sparse_matrix<int> const&, double const*, double const*) | void make_observation(const sparse_matrix<int>& ap,
const Float* P,
const Float* /*pi*/)
{
static_assert(std::is_floating_point<Float>::value);
colormap cm(-1.0f, 1.0f);
pnm_array pnm(constraints, variables);
if (!pnm)
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
vmovsd 0x3ed6d0(%rip), %xmm0 # 0x459b30
movq %rdx, %r14
movq %rsi, 0x38(%rsp)
movq %rdi, %r15
movq %rsp, %rbx
vmovsd %xmm0, 0x40(%rsp)
movl (%rdi), %esi
movl 0x4(%rdi), %edx
movq %rbx, %rdi
callq 0x43284
movq (%rbx), %rdi
testq %rdi, %... | /quesnel[P]baryonyx/lib/src/observer.hpp |
baryonyx::colormap::rgb baryonyx::colormap::operator()<double>(double) | rgb operator()(T v_) noexcept
{
float v = static_cast<float>(v_);
if (v < m_lower)
v = m_lower;
if (v > m_upper)
v = m_upper;
float dv = m_upper - m_lower;
float r = 1.f, g = 1.f, b = 1.f;
if (v < (m_lower + 0.25f * dv)) {
r = 0... | vmovss (%rdi), %xmm1
vmovss 0x4(%rdi), %xmm3
vcvtsd2ss %xmm0, %xmm0, %xmm0
vmaxss %xmm0, %xmm1, %xmm0
vminss %xmm0, %xmm3, %xmm2
vsubss %xmm1, %xmm3, %xmm0
vmovss 0x3ed515(%rip), %xmm3 # 0x459ad4
vfmadd213ss %xmm1, %xmm0, %xmm3 # xmm3 = (xmm0 * xmm3) + xmm1
vucomiss %xmm2, %xmm3
jbe 0x6c5e3
vsubss %xmm1, %xmm2, %xmm1... | /quesnel[P]baryonyx/lib/src/pnm.hpp |
void baryonyx::details::ap_file_observer::make_observation<double>(baryonyx::sparse_matrix<int> const&, double const*, double const*) | void make_observation(const sparse_matrix<int>& ap,
const Float* P,
const Float* /*pi*/)
{
static_assert(std::is_floating_point<Float>::value);
std::ofstream ofs(fmt::format("{}-P-{}.txt", m_basename, m_frame++));
for (int k = 0; k != con... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x258, %rsp # imm = 0x258
movl 0x8(%rdi), %eax
movq %rdi, %r15
movq %rdx, %rbx
movq %rsi, %r14
movq %rsp, %r12
leal 0x1(%rax), %ecx
movl %ecx, 0x8(%rdi)
vmovups 0x10(%rdi), %xmm0
leaq 0x3eddd1(%rip), %rdi # 0x45a637
vmovaps %xmm0, (%r... | /quesnel[P]baryonyx/lib/src/observer.hpp |
baryonyx::itm::solver_functor<baryonyx::itm::solver_random_inequalities_101coeff<double, baryonyx::itm::maximize_tag, baryonyx::itm::default_cost_type<double>>, double, baryonyx::itm::maximize_tag, baryonyx::itm::default_cost_type<double>, baryonyx::none_observer>::store_if_better(baryonyx::bit_array const&, double, lo... | inline bool
is_better_solution(Float lhs, Float rhs) noexcept
{
if constexpr (std::is_same_v<Mode, minimize_tag>)
return lhs < rhs;
else
return lhs > rhs;
} | vucomisd 0x30(%rdi), %xmm0
jbe 0x6cb0c
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
addq $0x20, %rdi
movq %rdx, %rbx
vmovsd %xmm0, (%rsp)
callq 0x36a44
movq %r14, %rdi
callq 0x6cb86
vmovsd (%rsp), %xmm1
vmovsd %xmm0, 0x38(%r14)
movq %rbx, 0x48(%r14)
andl $0x0, 0x50(%r14)
vmovsd %xmm1, 0x30(%r14)
addq $0x8, %rsp
pop... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::result baryonyx::itm::optimize_problem<baryonyx::itm::solver_random_inequalities_101coeff<double, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<double>>, double, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<double>>(baryonyx::context const&, baryonyx::problem const&) | inline result
optimize_problem(const context& ctx, const problem& pb)
{
result r;
if (ctx.start)
ctx.start(ctx.parameters);
auto constraints{ make_merged_constraints(ctx, pb) };
if (constraints.empty() || pb.vars.values.empty()) {
r.status = result_status::success;
r.solutions.... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp # imm = 0x198
vxorpd %xmm0, %xmm0, %xmm0
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %r12
vmovupd %zmm0, 0x58(%rdi)
vmovupd %zmm0, 0x40(%rdi)
vmovupd %zmm0, (%rdi)
movq $0x7fffffff, 0x98(%rdi) # imm = 0x7FFFFFFF
movl $0x2, 0xa... | /quesnel[P]baryonyx/lib/src/itm-optimizer-common.hpp |
baryonyx::result baryonyx::itm::solve_problem<baryonyx::itm::solver_random_inequalities_101coeff<double, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<double>>, double, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<double>>(baryonyx::context const&, baryonyx::problem const&) | inline result
solve_problem(const context& ctx, const problem& pb)
{
if (ctx.start)
ctx.start(ctx.parameters);
result ret;
auto variables = length(pb.vars.values);
auto constraints{ make_merged_constraints(ctx, pb) };
if (!constraints.empty() && !pb.vars.values.empty()) {
random_e... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x140, %rsp # imm = 0x140
cmpq $0x0, 0x128(%rsi)
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
je 0x6d240
leaq 0x118(%r14), %rdi
movq %r14, %rsi
callq 0x3527e
vxorps %xmm0, %xmm0, %xmm0
vmovups %zmm0, 0x58(%rbx)
vmovups %zmm0, 0x40(%rbx)
vmovups ... | /quesnel[P]baryonyx/lib/src/itm-solver-common.hpp |
baryonyx::itm::quadratic_cost_type<double>::quadratic_cost_type(baryonyx::objective_function const&, int) | quadratic_cost_type(const objective_function& obj_, int n)
: obj(obj_)
, linear_elements(std::make_unique<Float[]>(n))
, quadratic_elements(
std::make_unique<quad[]>(2 * obj.qelements.size() + 1))
, indices(std::make_unique<int[]>(n + 1))
{
for (int i = 0, e = length(obj.el... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, (%rdi)
leaq 0x8(%rdi), %r15
movslq %edx, %rsi
movq %rdi, %r13
movl %edx, %ebx
movq %r15, %rdi
callq 0x2900a
movq (%r13), %rax
leaq 0x10(%r13), %r14
movq 0x20(%rax), %rsi
subq 0x18(%rax), %rsi
sarq $0x3, %rsi
orq $0x1, %rsi
movq %r14... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
void baryonyx::itm::init_with_bastert<baryonyx::itm::quadratic_cost_type<double>, baryonyx::itm::maximize_tag>(baryonyx::bit_array&, baryonyx::itm::quadratic_cost_type<double> const&, int, int) | void
init_with_bastert(bit_array& x,
const Cost& c,
const int variables,
const int value_if_0) noexcept
{
for (int i = 0; i != variables; ++i)
if (init_x<Mode>(c[i], value_if_0))
x.set(i);
else
x.unset(i);
} | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
xorl %r12d, %r12d
cmpl %r12d, %ebp
je 0x6ddc5
testl %ebx, %ebx
movq %r14, %rdi
movl %r12d, %esi
setne %r13b
callq 0x6e256
vxorpd %xmm1, %xmm1, %xmm1
vucomisd %xmm1, %xmm0
setnp %c... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::quadratic_cost_type<double>::results(baryonyx::bit_array const&, double) const | double results(const bit_array& x, double cost_constant) const noexcept
{
for (int i = 0, e = length(obj.elements); i != e; ++i)
if (x[obj.elements[i].variable_index])
cost_constant += obj.elements[i].factor;
for (int i = 0, e = length(obj.qelements); i != e; ++i)
... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq (%rdi), %rax
movabsq $0xffffffff0, %r12 # imm = 0xFFFFFFFF0
vmovsd %xmm0, 0x8(%rsp)
movq %rsi, %rbx
movq %rdi, %r14
xorl %r13d, %r13d
movq 0x8(%rax), %r15
subq (%rax), %r15
andq %r12, %r15
movq (%r14), %rax
cmpq %r13, %r15
je 0x6e103
movq... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::storage<baryonyx::itm::quadratic_cost_type<double>, baryonyx::itm::maximize_tag>::sort() | void sort() noexcept
{
m_indices_writer lock{ m_indices_mutex };
std::sort(
std::begin(m_indices), std::end(m_indices), [this](int i1, int i2) {
const int cst_1 = this->m_data[i1].remaining_constraints;
const int cst_2 = this->m_data[i2].remaining_constraints;
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x377e6
movq 0x38(%rbx), %rdi
movq 0x40(%rbx), %rsi
movq %rbx, %rdx
callq 0x6ecf9
movq 0x5cee19(%rip), %r13 # 0x63cfc8
movq (%r13), %rdi
leaq 0x3ebede(%rip), %rcx # 0x45a09... | /quesnel[P]baryonyx/lib/src/itm-optimizer-common.hpp |
baryonyx::itm::quadratic_cost_type<double> baryonyx::itm::normalize_costs<double, baryonyx::itm::quadratic_cost_type<double>>(baryonyx::context const&, baryonyx::itm::quadratic_cost_type<double> const&, std::linear_congruential_engine<unsigned long, 16807ul, 0ul, 2147483647ul>&, int) | inline Cost
normalize_costs(const context& ctx, const Cost& c, random_engine& rng, int n)
{
Cost ret(c, n);
switch (ctx.parameters.cost_norm) {
case solver_parameters::cost_norm_type::none:
info(ctx, " - No norm");
return ret;
case solver_parameters::cost_norm_type::random:
in... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdx, %rsi
movl %r8d, %edx
movl %r8d, %ebp
movq %rcx, %r15
movq %rdi, %rbx
callq 0x7058a
movl 0xd8(%r14), %eax
cmpq $0x3, %rax
ja 0x6fbf7
leaq 0x3ea0c7(%rip), %rcx # 0x459c50
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x3ea54... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::solver_random_inequalities_101coeff<double, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<double>>::solver_random_inequalities_101coeff(std::linear_congruential_engine<unsigned long, 16807ul, 0ul, 2147483647ul>&, int, int, baryonyx::itm::quadratic_cost_type<double> const&, std::vector<b... | solver_random_inequalities_101coeff(
random_engine& rng_,
int m_,
int n_,
const cost_type& c_,
const std::vector<merged_constraint>& csts)
: rng(rng_)
, ap(csts, m_, n_)
, A(std::make_unique<int[]>(ap.size()))
, R(std::make_unique<rc_data[]>(compute_reduced_costs_ve... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
leaq 0x8(%rdi), %r13
movq %rsi, (%rdi)
movq %rdi, %r15
movq %r9, %r12
movq %r8, 0x20(%rsp)
movl %edx, %r14d
movq %r9, %rsi
movl %ecx, 0x4(%rsp)
movq %r13, %rdi
callq 0x3a4ca
movl 0x30(%r15), %esi
leaq 0x48(%r15), %rbx
movq %rbx, %rdi
mov... | /quesnel[P]baryonyx/lib/src/random-solver.cpp |
void baryonyx::itm::compute_order::init<baryonyx::itm::solver_random_inequalities_101coeff<double, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<double>>, baryonyx::bit_array>(baryonyx::itm::solver_random_inequalities_101coeff<double, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<dou... | void init(const Solver& s, const Xtype& x)
{
switch (order) {
case solver_parameters::constraint_order::infeasibility_decr:
case solver_parameters::constraint_order::infeasibility_incr:
infeasibility_local_compute_violated_constraints(s, x);
break;
case solver... | movl 0x30(%rdi), %ecx
movq %rdi, %rax
leal -0x3(%rcx), %edi
cmpl $0x2, %edi
jae 0x6ffe8
movq %rax, %rdi
jmp 0x71b60
cmpl $0x7, %ecx
jne 0x70005
movq (%rax), %rcx
movq 0x8(%rax), %rax
xorl %edx, %edx
cmpq %rax, %rcx
je 0x70013
movl %edx, (%rcx)
incl %edx
addq $0x4, %rcx
jmp 0x6fff6
movq %rsi, %rdi
movq %rdx, %rsi
movq %... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
int baryonyx::itm::compute_order::run<baryonyx::itm::solver_random_inequalities_101coeff<double, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<double>>, baryonyx::bit_array, double>(baryonyx::itm::solver_random_inequalities_101coeff<double, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_ty... | int run(Solver& solver,
Xtype& x,
random_engine& rng,
Float kappa,
Float delta,
Float theta)
{
bool pi_changed = false;
int remaining = 0;
switch (order) {
case solver_parameters::constraint_order::reversing:
so... | pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movl 0x30(%rdi), %eax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
decl %eax
cmpl $0x6, %eax
ja 0x70153
leaq 0x3e9c25(%rip), %rdx # 0x459c60
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
movq 0x8(%r14), %rax
leaq 0x28(%rsp), %rdx
leaq 0x20(%rsp), %rcx
movq... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::best_solution_recorder<baryonyx::itm::quadratic_cost_type<double>, double, baryonyx::itm::maximize_tag>::try_update(baryonyx::itm::local_context&, baryonyx::bit_array const&, double, long) | void try_update(local_context& ctx,
const bit_array& solution,
const double value,
const long int loop)
{
auto hash = bit_array_hash()(solution);
if (m_storage.can_be_inserted(hash, value)) {
const auto end = std::chrono::stead... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r13
leaq 0xf(%rsp), %rdi
movq %rsi, %r15
movq %rdx, %rsi
movq %rcx, %rbx
vmovsd %xmm0, 0x10(%rsp)
movq %rdx, %r14
callq 0x3775a
vmovsd 0x10(%rsp), %xmm0
leaq 0x8(%r13), %rbp
movq %rax, %r12
movq %rax, %rsi
movq %rbp, %rdi
cal... | /quesnel[P]baryonyx/lib/src/itm-optimizer-common.hpp |
baryonyx::itm::best_solution_recorder<baryonyx::itm::quadratic_cost_type<double>, double, baryonyx::itm::maximize_tag>::try_advance(baryonyx::itm::local_context&, baryonyx::bit_array const&, int, long) | void try_advance(local_context& ctx,
const bit_array& solution,
const int remaining_constraints,
const long int loop)
{
auto hash = bit_array_hash()(solution);
if (m_storage.can_be_inserted(hash, remaining_constraints)) {
co... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r13
leaq 0xf(%rsp), %rdi
movq %rsi, %r15
movq %rdx, %rsi
movq %r8, 0x10(%rsp)
movl %ecx, %ebp
movq %rdx, %r14
callq 0x3775a
leaq 0x8(%r13), %rbx
movq %rax, %r12
movq %rax, %rsi
movl %ebp, %edx
movq %rbx, %rdi
callq 0x74cd0
te... | /quesnel[P]baryonyx/lib/src/itm-optimizer-common.hpp |
int baryonyx::itm::compute_order::push_and_run<baryonyx::itm::solver_random_inequalities_101coeff<double, baryonyx::itm::maximize_tag, baryonyx::itm::quadratic_cost_type<double>>, baryonyx::bit_array, double>(baryonyx::itm::solver_random_inequalities_101coeff<double, baryonyx::itm::maximize_tag, baryonyx::itm::quadrati... | int push_and_run(Solver& solver,
Xtype& x,
random_engine& rng,
Float kappa,
Float delta,
Float theta,
Float objective_amplifier)
{
bool pi_changed = 0;
int remaining = 0;
... | pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movl 0x30(%rdi), %eax
cmpb $0x1, 0x34(%rdi)
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
jne 0x70356
xorl %esi, %esi
leal 0x1(%rax), %edx
cmpl $0x7, %eax
cmovll %edx, %esi
movl %esi, %eax
movl %esi, 0x30(%r14)
decl %eax
cmpl $0x6, %eax
ja 0x704c7
leaq 0x3e9914(%rip),... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::quadratic_cost_type<double>::quadratic_cost_type(baryonyx::itm::quadratic_cost_type<double> const&, int) | quadratic_cost_type(const quadratic_cost_type& other, int n)
: obj(other.obj)
, linear_elements(std::make_unique<Float[]>(n))
, quadratic_elements(std::make_unique<quad[]>(other.indices[n]))
, indices(std::make_unique<int[]>(n + 1))
{
std::copy_n(other.linear_elements.get(), n, linea... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq (%rsi), %rax
leaq 0x8(%rdi), %r13
movslq %edx, %r15
movq %rsi, %rbx
movl %edx, %ebp
movq %rdi, %r12
movq %r15, %rsi
movq %rax, (%rdi)
movq %r13, %rdi
callq 0x2900a
movq 0x18(%rbx), %rax
leaq 0x10(%r12), %rdi
movslq (%rax,%r15,4), %rsi
mov... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
void baryonyx::itm::quadratic_cost_type<double>::make_random_norm<std::linear_congruential_engine<unsigned long, 16807ul, 0ul, 2147483647ul>>(int, std::linear_congruential_engine<unsigned long, 16807ul, 0ul, 2147483647ul>&) | void make_random_norm(int n, Random& rng)
{
std::vector<std::pair<Float, int>> r(n);
std::vector<std::pair<quad, int>> q(indices[n]);
for (int i = 0; i != n; ++i)
r[i] = { linear_elements[i], i };
std::sort(r.begin(), r.end(), [](const auto& lhs, const auto& rhs) {
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r15
movq %rdi, %rbx
movslq %esi, %r14
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rdx
movl %esi, %ebp
movq %r14, %rsi
callq 0x656ec
movq 0x18(%rbx), %rax
movslq (%rax,%r14,4), %rsi
leaq 0x30(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::quadratic_cost_type<double>::make_l1_norm(int) | void make_l1_norm(int n)
{
Float div = { 0 };
for (int i = 0; i != n; ++i)
div += std::abs(linear_elements[i]);
for (int i = 0, e = indices[n]; i != e; ++i)
div += std::abs(quadratic_elements[i].factor);
if (std::isnormal(div)) {
for (int i = 0;... | vmovddup 0x3e7270(%rip), %xmm1 # xmm1 = mem[0,0]
movq 0x8(%rdi), %rax
vxorpd %xmm0, %xmm0, %xmm0
movl %esi, %ecx
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x70873
vmovsd (%rax,%rdx,8), %xmm2
incq %rdx
vandpd %xmm1, %xmm2, %xmm2
vaddsd %xmm2, %xmm0, %xmm0
jmp 0x7085c
movq 0x18(%rdi), %r8
movslq %esi, %rdx
movq 0x10(%rdi), %r... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::quadratic_cost_type<double>::make_l2_norm(int) | void make_l2_norm(int n)
{
Float div = { 0 };
for (int i = 0; i != n; ++i)
div += linear_elements[i] * linear_elements[i];
;
for (int i = 0, e = indices[n]; i != e; ++i)
div += quadratic_elements[i].factor * quadratic_elements[i].factor;
if (std::is... | movq 0x8(%rdi), %rax
vxorpd %xmm0, %xmm0, %xmm0
movl %esi, %ecx
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x70920
vmovsd (%rax,%rdx,8), %xmm1
incq %rdx
vfmadd231sd %xmm1, %xmm1, %xmm0 # xmm0 = (xmm1 * xmm1) + xmm0
jmp 0x7090c
movq 0x18(%rdi), %r8
movslq %esi, %rdx
movq 0x10(%rdi), %rsi
movl (%r8,%rdx,4), %edx
xorl %r8d, %r8d
... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::quadratic_cost_type<double>::make_loo_norm(int) | void make_loo_norm(int n)
{
Float div =
*std::max_element(linear_elements.get(), linear_elements.get() + n);
for (int i = 0, e = indices[n]; i != e; ++i)
div = std::max(quadratic_elements[i].factor, div);
if (std::isnormal(div)) {
for (int i = 0; i != n; +... | pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
movslq %esi, %r14
movl %esi, %ebp
leaq (%rdi,%r14,8), %rsi
callq 0x66358
vmovsd (%rax), %xmm0
movq 0x18(%rbx), %rax
movq 0x10(%rbx), %rcx
xorl %edx, %edx
movl (%rax,%r14,4), %eax
shlq $0x4, %rax
cmpq %rdx, %rax
je 0x709e9
vmaxsd (%rcx,%rdx), %xmm0, %... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::quadratic_cost_type<double>::min(int) const | Float min(int n) const noexcept
{
Float min = std::numeric_limits<Float>::max();
for (int i = 0; i != n; ++i)
if (linear_elements[i])
min = std::min(min, std::abs(linear_elements[i]));
for (int i = 0, e = indices[n]; i != e; ++i)
if (quadratic_elemen... | vmovsd 0x3e2a4e(%rip), %xmm0 # 0x454008
vmovddup 0x3e64fe(%rip), %xmm1 # xmm1 = mem[0,0]
movq 0x8(%rdi), %rax
vxorpd %xmm2, %xmm2, %xmm2
movl %esi, %ecx
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x715f9
vmovsd (%rax,%rdx,8), %xmm3
incq %rdx
vandpd %xmm1, %xmm3, %xmm4
vcmpneqpd %xmm2, %xmm3, %k1
vcmpltpd %xmm0, %xmm4, %k0
... | /quesnel[P]baryonyx/lib/src/itm-common.hpp |
baryonyx::itm::best_solution_recorder<baryonyx::itm::quadratic_cost_type<double>, double, baryonyx::itm::maximize_tag>::mutation(baryonyx::itm::local_context&, baryonyx::bit_array&) | void mutation(local_context& ctx, bit_array& x)
{
if (ctx.value_p_dist.mean() == 0.0 && ctx.value_p_dist.stddev() == 0.0)
return;
double val_p, var_p;
do
var_p = ctx.variable_p_dist(ctx.rng);
while (var_p <= 0.0 || var_p >= 1.0);
do
val_... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
vmovsd 0x48(%rsi), %xmm0
vxorpd %xmm1, %xmm1, %xmm1
movq %rdx, %rbx
movq %rsi, %r14
vucomisd %xmm1, %xmm0
jne 0x7174e
jp 0x7174e
vmovsd 0x50(%r14), %xmm0
vucomisd %xmm1, %xmm0
jne 0x7174e
jp 0x7174e
addq $0x28, %rsp
popq %rbx
popq %r12
p... | /quesnel[P]baryonyx/lib/src/itm-optimizer-common.hpp |
Subsets and Splits
SQL Console for LLM4Binary/decompile-bench
Filters out entries with file names ending in .cpp, providing a basic subset of the dataset that excludes C++ files.