LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/bonetblai[P]mdp-engine/ctp3/../engine/aot.h
// Function: Online::Policy::AOT::hash_t<state_t>::clear()
void clear() {
        for( const_iterator it = begin(); it != end(); ++it ) {
            state_node_t<T> *s_node = it->second;
            for( int i = 0, isz = s_node->children_.size(); i < isz; ++i ) {
                delete s_node->children_[i];
            }
            delete it->second;
        }
        base_type::clear();
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x18(%rdi), %r14
testq %r14, %r14
je 0x27286
movq 0x18(%r14), %r15
movq 0xb0(%r15), %r12
subq 0xa8(%r15), %r12
shrq $0x3, %r12
testl %r12d, %r12d
jle 0x27272
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
xorl %r13d, %r13d
movq 0xa8(%r15), %rax
movq (%rax,%r13,8), %rdi
testq %rdi, %rdi
je 0x2726a
movq (%rdi), %rax
callq *0x8(%rax)
incq %r13
cmpq %r13, %r12
jne 0x27254
movq 0x18(%r14), %rdi
testq %rdi, %rdi
je 0x27281
movq (%rdi), %rax
callq *0x8(%rax)
movq (%r14), %r14
jmp 0x2722a
addq $0x8, %rbx
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x26b4c
nop
// File: /workspace/github_cpp_makefile_star2_O1/bonetblai[P]mdp-engine/ctp3/../engine/aot.h
// Function: Online::Policy::AOT::aot_t<state_t>::evaluate(state_t const&, unsigned int) const
float evaluate(const T &s, unsigned depth) const {
        total_evaluations_ += leaf_nsamples_;
        if( (heuristic_ != 0) && (depth < horizon_) ) {
            float value = heuristic_->value(s);
            policy_t<T>::heuristic_time_ = heuristic_->eval_time();
            return value;
        } else if( depth >= horizon_ ) {
            return 0;
        } else {
            float start_time = Utils::read_time_in_seconds();
            float value = Evaluation::evaluation(*base_policy_, s, leaf_nsamples_, horizon_ - depth);
            policy_t<T>::base_policy_time_ += Utils::read_time_in_seconds() - start_time;
            return value;
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movl 0x34(%rdi), %eax
movl 0x44(%rdi), %ecx
addl %ecx, 0x164(%rdi)
movq 0x98(%rdi), %rdi
testq %rdi, %rdi
setne %cl
cmpl %edx, %eax
seta %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x272f9
movq (%rdi), %rax
movq %r14, %rsi
callq *0x20(%rax)
movq 0x98(%rbx), %rax
movss 0x10(%rax), %xmm1
movss %xmm1, 0x1c(%rbx)
jmp 0x27440
xorps %xmm0, %xmm0
cmpl %ebp, %eax
jbe 0x27440
leaq 0x18(%rsp), %r15
xorl %edi, %edi
movq %r15, %rsi
callq 0x6190
xorps %xmm0, %xmm0
cvtsi2ssq (%r15), %xmm0
movss %xmm0, 0x14(%rsp)
xorps %xmm0, %xmm0
cvtsi2ssq 0x8(%r15), %xmm0
movss %xmm0, 0x4(%rsp)
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movq %r15, %rsi
callq 0x6190
xorps %xmm0, %xmm0
cvtsi2ssq (%r15), %xmm0
movss %xmm0, 0x10(%rsp)
xorps %xmm0, %xmm0
cvtsi2ssq 0x8(%r15), %xmm0
addss 0x4(%rsp), %xmm0
movss %xmm0, 0x8(%rsp)
movl 0x44(%rbx), %r13d
testq %r13, %r13
je 0x2739f
movq 0x28(%rbx), %r15
movl 0x34(%rbx), %r12d
subl %ebp, %r12d
xorps %xmm1, %xmm1
movq %r13, %rbp
movss %xmm1, 0x4(%rsp)
movq %r15, %rdi
movq %r14, %rsi
movl %r12d, %edx
callq 0x1f63d
movss 0x4(%rsp), %xmm1
addss %xmm0, %xmm1
decq %rbp
jne 0x2737a
jmp 0x273a2
xorps %xmm1, %xmm1
xorps %xmm0, %xmm0
cvtsi2ss %r13, %xmm0
divss %xmm0, %xmm1
movss %xmm1, 0x4(%rsp)
leaq 0x18(%rsp), %r14
xorl %edi, %edi
movq %r14, %rsi
callq 0x6190
xorps %xmm0, %xmm0
cvtsi2ssq (%r14), %xmm0
movss %xmm0, 0xc(%rsp)
xorps %xmm0, %xmm0
cvtsi2ssq 0x8(%r14), %xmm0
subss 0x8(%rsp), %xmm0
movss %xmm0, 0x8(%rsp)
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movq %r14, %rsi
callq 0x6190
xorps %xmm0, %xmm0
cvtsi2ssq (%r14), %xmm0
xorps %xmm1, %xmm1
cvtsi2ssq 0x8(%r14), %xmm1
addss 0x8(%rsp), %xmm1
mulss 0x5bf2(%rip), %xmm1     # 0x2d004
movss 0x14(%rsp), %xmm2
addss 0x10(%rsp), %xmm2
movss 0xc(%rsp), %xmm3
subss %xmm2, %xmm3
addss %xmm0, %xmm3
addss 0x18(%rbx), %xmm3
addss %xmm1, %xmm3
movss 0x4(%rsp), %xmm0
movss %xmm3, 0x18(%rbx)
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/bonetblai[P]mdp-engine/ctp3/../engine/aot.h
// Function: Online::Policy::AOT::state_node_t<state_t>::print(std::ostream&, bool) const
virtual void print(std::ostream &os, bool indent = true) const {
        if( indent ) os << std::setw(2 * depth_) << "";
        os << "[state=" << state_
           << ",depth=" << depth_
           << ",#pa=" << parents_.size()
           << ",#chld=" << children_.size()
           << ",value=" << value_
           << ",delta=" << delta_
           << "]";
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
testl %edx, %edx
je 0x275d3
movl 0x8c(%rbx), %eax
addl %eax, %eax
movq (%r14), %rcx
movq -0x18(%rcx), %rcx
cltq
movq %rax, 0x10(%r14,%rcx)
leaq 0x699e(%rip), %rsi      # 0x2df67
movq %r14, %rdi
xorl %edx, %edx
callq 0x62e0
leaq 0x85fa(%rip), %rsi      # 0x2fbd4
movl $0x7, %edx
movq %r14, %rdi
callq 0x62e0
leaq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0x19d04
leaq 0x6c49(%rip), %rsi      # 0x2e243
movl $0x7, %edx
movq %r14, %rdi
callq 0x62e0
movl 0x8c(%rbx), %esi
movq %r14, %rdi
callq 0x61d0
movq %rax, %r14
leaq 0x85bd(%rip), %rsi      # 0x2fbdc
movl $0x5, %edx
movq %rax, %rdi
callq 0x62e0
movq 0x98(%rbx), %rsi
subq 0x90(%rbx), %rsi
sarq $0x4, %rsi
movq %r14, %rdi
callq 0x61d0
movq %rax, %r14
leaq 0x8592(%rip), %rsi      # 0x2fbe2
movl $0x7, %edx
movq %rax, %rdi
callq 0x62e0
movq 0xb0(%rbx), %rsi
subq 0xa8(%rbx), %rsi
sarq $0x3, %rsi
movq %r14, %rdi
callq 0x61d0
movq %rax, %r14
leaq 0x8569(%rip), %rsi      # 0x2fbea
movl $0x7, %edx
movq %rax, %rdi
callq 0x62e0
cvtss2sd 0x8(%rbx), %xmm0
movq %r14, %rdi
callq 0x63b0
movq %rax, %r14
leaq 0x854d(%rip), %rsi      # 0x2fbf2
movl $0x7, %edx
movq %rax, %rdi
callq 0x62e0
xorps %xmm0, %xmm0
cvtss2sd 0xc(%rbx), %xmm0
movq %r14, %rdi
callq 0x63b0
leaq 0x762c(%rip), %rsi      # 0x2ecf5
movl $0x1, %edx
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x62e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/bonetblai[P]mdp-engine/ctp3/../engine/aot.h
// Function: Online::Policy::AOT::aot_t<state_t>::evaluate(state_t const&, int, unsigned int) const
float evaluate(const T &state, Problem::action_t action, unsigned depth) const {
        // CHECK: this need to be revised when using heuristics
        float value = 0;
        for( unsigned i = 0; i < delayed_evaluation_nsamples_; ++i ) {
            std::pair<T, bool> sample = problem_.sample(state, action);
            value += evaluate(sample.first, depth);
        }
        return value / delayed_evaluation_nsamples_;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movl 0x48(%rdi), %eax
testl %eax, %eax
je 0x27e40
movl %ecx, %ebx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
xorl %r13d, %r13d
xorps %xmm0, %xmm0
movss %xmm0, 0x8(%rsp)
leaq 0x10(%rsp), %r12
movq 0x8(%r15), %rsi
movq %r12, %rdi
movq %r14, %rdx
movl %ebp, %ecx
callq 0xe0cc
movq %r15, %rdi
movq %r12, %rsi
movl %ebx, %edx
callq 0x2729c
movaps %xmm0, %xmm1
cmpb $0x0, 0x6c(%rsp)
jne 0x27e22
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x27e22
movss %xmm1, 0xc(%rsp)
callq 0x6340
movss 0xc(%rsp), %xmm1
movss 0x8(%rsp), %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x8(%rsp)
incl %r13d
movl 0x48(%r15), %eax
cmpl %eax, %r13d
jb 0x27ddf
jmp 0x27e49
xorps %xmm0, %xmm0
movss %xmm0, 0x8(%rsp)
movl %eax, %eax
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
movss 0x8(%rsp), %xmm0
divss %xmm1, %xmm0
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
cmpb $0x0, 0x6c(%rsp)
jne 0x27e88
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x27e88
callq 0x6340
movq %rbx, %rdi
callq 0x6410
// File: /workspace/github_cpp_makefile_star2_O1/bonetblai[P]mdp-engine/ctp3/../engine/aot.h
// Function: Online::Policy::AOT::action_node_t<state_t>::print(std::ostream&, bool) const
virtual void print(std::ostream &os, bool indent = true) const {
        if( indent ) os << std::setw(2 * parent_->depth_) << "";
        os << "[action=" << action_
           << ",value=" << value_
           << ",delta=" << delta_
           << "]";
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
testl %edx, %edx
je 0x27f07
movq 0x20(%rbx), %rax
movl 0x8c(%rax), %eax
addl %eax, %eax
movq (%r14), %rcx
movq -0x18(%rcx), %rcx
cltq
movq %rax, 0x10(%r14,%rcx)
leaq 0x606a(%rip), %rsi      # 0x2df67
movq %r14, %rdi
xorl %edx, %edx
callq 0x62e0
leaq 0x7d72(%rip), %rsi      # 0x2fc80
movl $0x8, %edx
movq %r14, %rdi
callq 0x62e0
movl 0x18(%rbx), %esi
movq %r14, %rdi
callq 0x6400
movq %rax, %r14
leaq 0x7cba(%rip), %rsi      # 0x2fbea
movl $0x7, %edx
movq %rax, %rdi
callq 0x62e0
cvtss2sd 0x8(%rbx), %xmm0
movq %r14, %rdi
callq 0x63b0
movq %rax, %r14
leaq 0x7c9e(%rip), %rsi      # 0x2fbf2
movl $0x7, %edx
movq %rax, %rdi
callq 0x62e0
xorps %xmm0, %xmm0
cvtss2sd 0xc(%rbx), %xmm0
movq %r14, %rdi
callq 0x63b0
leaq 0x6d7d(%rip), %rsi      # 0x2ecf5
movl $0x1, %edx
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x62e0
// File: /workspace/github_cpp_makefile_star2_O1/bonetblai[P]mdp-engine/ctp3/../engine/aot.h
// Function: Online::Policy::AOT::state_node_t<state_t>::update_value()
void update_value() {
        assert(!is_goal_);
        if( !is_dead_end_ ) {
            value_ = std::numeric_limits<float>::max();
            for( unsigned i = 0, isz = children_.size(); i < isz; ++i ) {
                float child_value = children_[i]->value_;
                if( child_value < value_ ) {
                    value_ = child_value;
                }
            }
            assert(value_ < std::numeric_limits<float>::max());
        }
    }

// Assembly:
pushq %rax
cmpb $0x1, 0x88(%rdi)
je 0x2829e
cmpb $0x0, 0x89(%rdi)
jne 0x2829c
movl $0x7f7fffff, 0x8(%rdi)  # imm = 0x7F7FFFFF
movq 0xa8(%rdi), %rax
movq 0xb0(%rdi), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
testl %ecx, %ecx
je 0x2828e
movss 0x8(%rdi), %xmm0
movl %ecx, %ecx
xorl %edx, %edx
movq (%rax,%rdx,8), %rsi
movss 0x8(%rsi), %xmm1
ucomiss %xmm1, %xmm0
jbe 0x28286
movss %xmm1, 0x8(%rdi)
movaps %xmm1, %xmm0
incq %rdx
cmpq %rdx, %rcx
jne 0x28270
movss 0x4d7e(%rip), %xmm0     # 0x2d014
ucomiss 0x8(%rdi), %xmm0
jbe 0x282bd
popq %rax
retq
leaq 0x7ab0(%rip), %rdi      # 0x2fd55
leaq 0x6739(%rip), %rsi      # 0x2e9e5
leaq 0x7aac(%rip), %rcx      # 0x2fd5f
movl $0x9c, %edx
callq 0x61c0
leaq 0x7ae9(%rip), %rdi      # 0x2fdad
leaq 0x671a(%rip), %rsi      # 0x2e9e5
leaq 0x7a8d(%rip), %rcx      # 0x2fd5f
movl $0xa5, %edx
callq 0x61c0
// File: /workspace/github_cpp_makefile_star2_O1/bonetblai[P]mdp-engine/ctp3/../engine/aot.h
// Function: Online::Policy::AOT::action_node_t<state_t>::update_value(float)
void update_value(float discount) {
        value_ = 0;
        for( unsigned i = 0, isz = children_.size(); i < isz; ++i ) {
            value_ += children_[i].first * children_[i].second->value_;
        }
        value_ = action_cost_ + discount * value_;
    }

// Assembly:
movl $0x0, 0x8(%rdi)
movq 0x28(%rdi), %rax
movq 0x30(%rdi), %rdx
subq %rax, %rdx
movabsq $0xffffffff0, %rcx      # imm = 0xFFFFFFFF0
andq %rdx, %rcx
je 0x28325
movss 0x8(%rdi), %xmm1
xorl %edx, %edx
movq 0x8(%rax,%rdx), %rsi
movss 0x8(%rsi), %xmm2
mulss (%rax,%rdx), %xmm2
addss %xmm2, %xmm1
movss %xmm1, 0x8(%rdi)
addq $0x10, %rdx
cmpq %rdx, %rcx
jne 0x28304
mulss 0x8(%rdi), %xmm0
addss 0x1c(%rdi), %xmm0
movss %xmm0, 0x8(%rdi)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/bonetblai[P]mdp-engine/ctp3/../engine/online_rtdp.h
// Function: Online::Policy::RTDP::finite_horizon_lrtdp_t<state_t>::operator()(state_t const&) const
virtual Problem::action_t operator()(const T &s) const {
        // initialize
        ++policy_t<T>::decisions_;
        clear_table();
        node_t<T> root(s, 0);
        data_t *root_dptr = table_.get_data_ptr(root);

        // perform trials
        for( unsigned trial = 0; (trial < max_trials_) && !labeled(root_dptr); ++trial ) {
            lrtdp_trial(root, root_dptr);
        }
#ifdef DEBUG
        std::cout << "finite_horizon_lrtdp_t: root-value=" << root_dptr->value_
                  << ", labeled=" << (root_dptr->labeled_ ? "true" : "false")
                  << std::endl;
#endif
        return best_action(root, random_ties_);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r14
movq %rdi, %rbx
incl 0x20(%rdi)
callq 0x29874
xorl %eax, %eax
movq %rsp, %r15
movq %rax, 0x44(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x34(%r15)
movups %xmm0, 0x24(%r15)
movups %xmm0, 0x14(%r15)
movups %xmm0, 0x4(%r15)
movb $0x1, 0x5c(%r15)
movq %rax, 0x60(%r15)
movq %r15, %rdi
movq %r14, %rsi
callq 0xd546
movl $0x0, 0x70(%r15)
leaq 0x40(%rbx), %rdi
movq %r15, %rsi
callq 0x298ae
cmpl $0x0, 0x34(%rbx)
je 0x293b7
movq %rax, %r14
testq %rax, %rax
je 0x293eb
xorl %ebp, %ebp
movq %rsp, %r15
cmpb $0x0, 0x4(%r14)
jne 0x293b7
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x298f0
incl %ebp
cmpl 0x34(%rbx), %ebp
jb 0x2939b
movzbl 0x39(%rbx), %edx
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x29d0e
movl %eax, %ebx
cmpb $0x0, 0x5c(%rsp)
jne 0x293de
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x293de
callq 0x6340
movl %ebx, %eax
addq $0x78, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6b45(%rip), %rdi      # 0x2ff37
leaq 0x6b48(%rip), %rsi      # 0x2ff41
leaq 0x6b59(%rip), %rcx      # 0x2ff59
movl $0x13d, %edx            # imm = 0x13D
callq 0x61c0
jmp 0x2940c
movq %rax, %rbx
cmpb $0x0, 0x5c(%rsp)
jne 0x29425
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x29425
callq 0x6340
movq %rbx, %rdi
callq 0x6410
nop
// File: /workspace/github_cpp_makefile_star2_O1/bonetblai[P]mdp-engine/ctp3/../engine/online_rtdp.h
// Function: Online::Policy::RTDP::finite_horizon_lrtdp_t<state_t>::print_other_stats(std::ostream&, int) const
virtual void print_other_stats(std::ostream &os, int indent) const {
        os << std::setw(indent) << ""
           << "other-stats: name=" << name()
           << " decisions=" << policy_t<T>::decisions_
           << " #expansions=" << total_number_expansions_
           << std::endl;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rax
movq -0x18(%rax), %rax
movslq %edx, %rcx
movq %rcx, 0x10(%rsi,%rax)
leaq 0x4ae6(%rip), %rsi      # 0x2df67
movq %r14, %rdi
xorl %edx, %edx
callq 0x62e0
leaq 0x416f(%rip), %rsi      # 0x2d601
movl $0x12, %edx
movq %r14, %rdi
callq 0x62e0
movq (%rbx), %rax
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
callq *0x18(%rax)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq 0x62e0
movq %rax, %r14
leaq 0x414d(%rip), %rsi      # 0x2d614
movl $0xb, %edx
movq %rax, %rdi
callq 0x62e0
movl 0x20(%rbx), %esi
movq %r14, %rdi
callq 0x61d0
movq %rax, %r14
leaq 0x69d6(%rip), %rsi      # 0x2febf
movl $0xd, %edx
movq %rax, %rdi
callq 0x62e0
movl 0x80(%rbx), %esi
movq %r14, %rdi
callq 0x61d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x6270
movsbl %al, %esi
movq %rbx, %rdi
callq 0x6040
movq %rax, %rdi
callq 0x61e0
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x29541
callq 0x6260
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x29561
callq 0x6260
movq %rbx, %rdi
callq 0x6410
nop
// File: /workspace/github_cpp_makefile_star2_O1/bonetblai[P]mdp-engine/ctp3/../engine/online_rtdp.h
// Function: Online::Policy::RTDP::finite_horizon_lrtdp_t<state_t>::best_action(Online::Policy::RTDP::node_t<state_t> const&, bool) const
Problem::action_t best_action(const node_t<T> &node, bool random_ties) const {
        std::vector<Problem::action_t> actions;
        int nactions = problem_.number_actions(node.state());
        float best_value = std::numeric_limits<float>::max();
        actions.reserve(random_ties ? nactions : 1);
        for( Problem::action_t a = 0; a < nactions; ++a ) {
            if( problem_.applicable(node.state(), a) ) {
                std::pair<float, bool> p = q_value(node, a);
                if( p.first <= best_value ) {
                    if( p.first < best_value ) {
                        best_value = p.first;
                        actions.clear();
                    }
                    if( random_ties || actions.empty() )
                        actions.push_back(a);
                }
            }
        }
        assert(!actions.empty());
        assert(actions.size() == 1);
        return actions[Random::random(actions.size())];
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x8(%rdi), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
movl %eax, %ebp
cltq
testb %bl, %bl
movl $0x1, %esi
cmovneq %rax, %rsi
leaq 0x10(%rsp), %rdi
callq 0xd076
movl $0x0, 0x8(%rsp)
testl %ebp, %ebp
jle 0x29e14
xorl %edx, %edx
movss 0x32a2(%rip), %xmm0     # 0x2d014
movss %xmm0, 0xc(%rsp)
leaq 0x10(%rsp), %r12
leaq 0x8(%rsp), %r13
movq 0x8(%r15), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x30(%rax)
testb %al, %al
je 0x29e02
movl 0x8(%rsp), %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x2aa7e
movd %eax, %xmm0
movss 0xc(%rsp), %xmm1
ucomiss %xmm0, %xmm1
jb 0x29e02
jbe 0x29dca
movq 0x10(%rsp), %rax
cmpq %rax, 0x18(%rsp)
je 0x29dc4
movq %rax, 0x18(%rsp)
movss %xmm0, 0xc(%rsp)
testb %bl, %bl
jne 0x29dda
movq 0x10(%rsp), %rax
cmpq 0x18(%rsp), %rax
jne 0x29e02
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x29df7
movl 0x8(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x29e02
movq %r12, %rdi
movq %r13, %rdx
callq 0xb4a0
movl 0x8(%rsp), %edx
incl %edx
movl %edx, 0x8(%rsp)
cmpl %ebp, %edx
jl 0x29d82
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
cmpq %rcx, %rax
je 0x29e49
subq %rax, %rcx
cmpq $0x4, %rcx
jne 0x29e68
movq 0x10(%rsp), %rdi
movl (%rdi), %ebx
callq 0x6260
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x627f(%rip), %rdi      # 0x300cf
leaq 0x60ea(%rip), %rsi      # 0x2ff41
leaq 0x6282(%rip), %rcx      # 0x300e0
movl $0xf7, %edx
callq 0x61c0
leaq 0x62f3(%rip), %rdi      # 0x30162
leaq 0x60cb(%rip), %rsi      # 0x2ff41
leaq 0x6263(%rip), %rcx      # 0x300e0
movl $0xf8, %edx
callq 0x61c0
jmp 0x29e8d
jmp 0x29e8d
jmp 0x29e8d
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x29e9f
callq 0x6260
movq %rbx, %rdi
callq 0x6410
nop
// File: /workspace/github_cpp_makefile_star2_O1/bonetblai[P]mdp-engine/ctp3/../engine/online_rtdp.h
// Function: Online::Policy::RTDP::finite_horizon_lrtdp_t<state_t>::best_q_value(Online::Policy::RTDP::node_t<state_t> const&) const
std::pair<std::pair<float, Problem::action_t>, bool> best_q_value(const node_t<T> &node) const {
        bool all_labeled = false;
        Problem::action_t best_action = Problem::noop;
        float best_value = std::numeric_limits<float>::max();
        int nactions = problem_.number_actions(node.state());
        for( Problem::action_t a = 0; a < nactions; ++a ) {
            if( problem_.applicable(node.state(), a) ) {
                std::pair<float, bool> p = q_value(node, a);
                if( (best_action == Problem::noop) || (p.first < best_value) ) {
                    all_labeled = p.second;
                    best_value = p.first;
                    best_action = a;
                }
            }
        }
        assert(best_action != Problem::noop);
        return std::make_pair(std::make_pair(best_value, best_action), all_labeled);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
movq 0x8(%rdi), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
xorl %r13d, %r13d
testl %eax, %eax
jle 0x2a53b
movl %eax, %r12d
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movss 0x2b3c(%rip), %xmm0     # 0x2d014
movss %xmm0, 0x4(%rsp)
xorl %ebp, %ebp
movq 0x8(%r15), %rdi
movq (%rdi), %rax
movq %r14, %rsi
movl %r13d, %edx
callq *0x30(%rax)
testb %al, %al
je 0x2a527
movq %r15, %rdi
movq %r14, %rsi
movl %r13d, %edx
callq 0x2aa7e
movd %eax, %xmm0
cmpl $-0x1, %ebx
je 0x2a516
movss 0x4(%rsp), %xmm1
ucomiss %xmm0, %xmm1
jbe 0x2a527
shrq $0x20, %rax
andb $0x1, %al
movl %r13d, %ebx
movss %xmm0, 0x4(%rsp)
movl %eax, %ebp
incl %r13d
cmpl %r13d, %r12d
jne 0x2a4e0
movd 0x4(%rsp), %xmm0
movd %xmm0, %eax
jmp 0x2a547
movl $0x7f7fffff, %eax       # imm = 0x7F7FFFFF
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
xorl %ebp, %ebp
cmpl $-0x1, %ebx
je 0x2a567
shlq $0x20, %rbx
orq %rax, %rbx
movq %rbx, %rax
movl %ebp, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3ce7(%rip), %rdi      # 0x2e255
leaq 0x59cc(%rip), %rsi      # 0x2ff41
leaq 0x5a45(%rip), %rcx      # 0x2ffc1
movl $0x11d, %edx            # imm = 0x11D
callq 0x61c0
// File: /workspace/github_cpp_makefile_star2_O1/bonetblai[P]mdp-engine/ctp3/../engine/online_rtdp.h
// Function: Online::Policy::RTDP::finite_horizon_lrtdp_t<state_t>::try_label(Online::Policy::RTDP::node_t<state_t> const&, Online::Policy::RTDP::data_t*) const
bool try_label(const node_t<T> &node, data_t *dptr) const {
        bool labeled = true;
        if( dead_end(node) ) {
            dptr->value_ = problem_.dead_end_value();
        } else if( terminal(node) ) {
            dptr->value_ = 0;
        } else {
            std::pair<std::pair<float, Problem::action_t>, bool> p = best_q_value(node);
            if( (p.first.first == dptr->value_) && p.second ) {
                labeled = true;
            } else {
                dptr->value_ = p.first.first;
                labeled = p.second;
            }
        }
        dptr->labeled_ = labeled;
        return labeled;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x8(%rdi), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
testb %al, %al
je 0x2a625
movq 0x8(%r15), %rax
movss 0xc(%rax), %xmm0
movss %xmm0, (%rbx)
jmp 0x2a646
movl 0x70(%r14), %eax
cmpl 0x30(%r15), %eax
jae 0x2a640
movq 0x8(%r15), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x20(%rax)
testb %al, %al
je 0x2a653
movl $0x0, (%rbx)
movb $0x1, %al
andb $0x1, %al
movb %al, 0x4(%rbx)
popq %rbx
popq %r14
popq %r15
retq
movq %r15, %rdi
movq %r14, %rsi
callq 0x2a4a6
movq %rax, %rcx
movd %ecx, %xmm0
ucomiss (%rbx), %xmm0
jne 0x2a671
movb $0x1, %al
testb $0x1, %dl
jne 0x2a648
movl %ecx, (%rbx)
movl %edx, %eax
jmp 0x2a648
nop
// File: /workspace/github_cpp_makefile_star2_O1/bonetblai[P]mdp-engine/ctp3/../engine/online_rtdp.h
// Function: Online::Policy::RTDP::finite_horizon_lrtdp_t<state_t>::value(Online::Policy::RTDP::node_t<state_t> const&) const
std::pair<float, bool> value(const node_t<T> &node) const {
        const data_t *dptr = table_.data_ptr(node);
        if( dptr != 0 ) {
            return std::make_pair(dptr->value_, dptr->labeled_);
        } else {
            float hvalue = 0; // default value for terminal node
            if( dead_end(node) ) {
                hvalue = problem_.dead_end_value();
            } else if( !terminal(node) ) {
                hvalue = heuristic_ == 0 ? 0 : heuristic_->value(node.state());
                policy_t<T>::heuristic_time_ = heuristic_ == 0 ? 0 : heuristic_->eval_time();
            }
            return std::make_pair(hvalue, false);
        }
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
addq $0x48, %rdi
callq 0x29f76
testq %rax, %rax
je 0x2ac9d
movq 0x80(%rax), %rax
jmp 0x2ac9f
xorl %eax, %eax
testq %rax, %rax
je 0x2acb3
movl (%rax), %ecx
movzbl 0x4(%rax), %eax
shlq $0x20, %rax
orq %rcx, %rax
jmp 0x2ad20
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x28(%rax)
testb %al, %al
je 0x2accf
movq 0x8(%rbx), %rax
movd 0xc(%rax), %xmm0
jmp 0x2ad1c
movl 0x70(%r14), %eax
pxor %xmm0, %xmm0
cmpl 0x30(%rbx), %eax
jae 0x2ad1c
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x20(%rax)
pxor %xmm0, %xmm0
testb %al, %al
jne 0x2ad1c
movq 0x28(%rbx), %rdi
xorps %xmm1, %xmm1
testq %rdi, %rdi
je 0x2ad09
movq (%rdi), %rax
movq %r14, %rsi
callq *0x20(%rax)
xorps %xmm1, %xmm1
movq 0x28(%rbx), %rax
testq %rax, %rax
je 0x2ad17
movss 0x10(%rax), %xmm1
movss %xmm1, 0x1c(%rbx)
movd %xmm0, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/bonetblai[P]mdp-engine/ctp3/../engine/problem.h
// Function: Problem::problem_t<state_t>::policy_size_aux(Problem::hash_t<state_t> const&, state_t const&, std::set<state_t, std::less<state_t>, std::allocator<state_t>>&) const
size_t policy_size_aux(const hash_t<T> &hash, const T &s, std::set<T> &marked_states) const {
        std::vector<std::pair<T, float> > outcomes;
        size_t size = 0;
        if( !terminal(s) && (marked_states.find(s) == marked_states.end()) ) {
            marked_states.insert(s);
            std::pair<action_t, float> p = hash.best_q_value(s);
            next(s, p.first, outcomes);
            unsigned osize = outcomes.size();
            for( unsigned i = 0; i < osize; ++i )
                size += policy_size_aux(hash, outcomes[i].first, marked_states);
            ++size;
        }
        return size;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq (%rdi), %rax
movq %rdx, %rsi
callq *0x20(%rax)
testb %al, %al
jne 0x2b837
movq %rbx, %rdi
movq %r12, %rsi
callq 0x2b8f4
leaq 0x8(%rbx), %rcx
cmpq %rcx, %rax
je 0x2b854
xorl %r12d, %r12d
movq %rsp, %rdi
callq 0xe35c
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movq %r12, %rsi
callq 0x2ba14
movq %r14, %rdi
movq %r12, %rsi
callq 0x10b16
movq (%r15), %r8
movq %rsp, %rcx
movq %r15, %rdi
movq %r12, %rsi
movl %eax, %edx
callq *0x60(%r8)
movq 0x8(%rsp), %rcx
subq (%rsp), %rcx
sarq $0x3, %rcx
movabsq $-0x1111111111111111, %rax # imm = 0xEEEEEEEEEEEEEEEF
imulq %rcx, %rax
testl %eax, %eax
je 0x2b8cf
movl %eax, %eax
imulq $0x78, %rax, %r13
xorl %ebp, %ebp
xorl %r12d, %r12d
movq (%rsp), %rdx
addq %rbp, %rdx
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rcx
callq 0x2b7ec
addq %rax, %r12
addq $0x78, %rbp
cmpq %rbp, %r13
jne 0x2b8a6
incq %r12
jmp 0x2b83a
movl $0x1, %r12d
jmp 0x2b83a
jmp 0x2b8e0
jmp 0x2b8e0
jmp 0x2b8e0
movq %rax, %rbx
movq %rsp, %rdi
callq 0xe35c
movq %rbx, %rdi
callq 0x6410
nop
// File: /workspace/github_cpp_makefile_star2_O1/bonetblai[P]mdp-engine/ctp3/./ctp3.h
// Function: state_t::operator<(state_t const&) const
bool operator<(const state_t &s) const {
        return (current_ < s.current_) ||
               ((current_ == s.current_) && (info_ < s.info_)) ||
               ((current_ == s.current_) && (info_ == s.info_) &&
                (memcmp(visited_, s.visited_, words_for_nodes_ * sizeof(unsigned)) < 0));
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl (%rsi), %eax
movb $0x1, %bpl
cmpl %eax, (%rdi)
jl 0x2b9c1
movq %rsi, %rbx
movq %rdi, %r14
jne 0x2b982
leaq 0x4(%r14), %rdi
leaq 0x4(%rbx), %rsi
callq 0x2b9c8
testb %al, %al
jne 0x2b9c1
movl (%r14), %eax
cmpl (%rbx), %eax
jne 0x2b9bf
leaq 0x4(%r14), %rdi
leaq 0x4(%rbx), %rsi
callq 0xcb80
testb %al, %al
je 0x2b9bf
addq $0x4c, %r14
addq $0x4c, %rbx
movslq 0x138df(%rip), %rdx     # 0x3f288
shlq $0x2, %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6130
movl %eax, %ebp
shrl $0x1f, %ebp
jmp 0x2b9c1
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/iZhangHui[P]CppPrimer/CH03_StringsVectorsAndArrays/examples/add_using.cc
// Function: main
int main()
{
	cout << "Enter two numbers:" << endl;

	int v1, v2;
	cin >> v1 >> v2;

	cout << "The sum of " << v1 << " and " << v2
	     << " is " << v1 + v2 << endl;

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x2dd3(%rip), %rbx      # 0x3fd0
leaq 0xe00(%rip), %rsi       # 0x2004
movl $0x12, %edx
movq %rbx, %rdi
callq 0x1080
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1070
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1050
movq 0x2da1(%rip), %rdi      # 0x3fe0
leaq -0x20(%rbp), %r14
movq %r14, %rsi
callq 0x1040
leaq -0x1c(%rbp), %r15
movq %rax, %rdi
movq %r15, %rsi
callq 0x1040
leaq 0xdb6(%rip), %rsi       # 0x2017
movl $0xb, %edx
movq %rbx, %rdi
callq 0x1080
movl (%r14), %esi
movq %rbx, %rdi
callq 0x10a0
movq %rax, %rbx
leaq 0xda0(%rip), %rsi       # 0x2023
movl $0x5, %edx
movq %rax, %rdi
callq 0x1080
movl (%r15), %esi
movq %rbx, %rdi
callq 0x10a0
movq %rax, %rbx
leaq 0xd84(%rip), %rsi       # 0x2029
movl $0x4, %edx
movq %rax, %rdi
callq 0x1080
movl (%r15), %esi
addl (%r14), %esi
movq %rbx, %rdi
callq 0x10a0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1070
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1050
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/xukmin[P]rase/sensor-placers.cc
// Function: RandomizedSensorPlacer::GeneratePositions(std::vector<Position, std::allocator<Position>>*)
void RandomizedSensorPlacer::GeneratePositions(std::vector<Position>* positions) {
  assert(positions != NULL);
  positions->clear();

  // Put the base station at the origin.
  positions->push_back(Position(0.0, 0.0));

  for (int i = 1; i < num_sensors_; i++) {
    positions->push_back(Position(DoubleRand(region_.min_x, region_.max_x),
                                  DoubleRand(region_.min_y, region_.max_y)));
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
testq %rsi, %rsi
je 0x405e
movq %rsi, %rbx
movq %rdi, %r14
movq (%rsi), %rax
cmpq %rax, 0x8(%rsi)
je 0x3fba
movq %rax, 0x8(%rbx)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x3fd5
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rbx)
jmp 0x3fe0
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x4208
cmpl $0x2, 0x8(%r14)
jl 0x4053
movl $0x1, %ebp
movq %rsp, %r15
movsd 0x10(%r14), %xmm0
movsd 0x20(%r14), %xmm1
callq 0x8188
movsd %xmm0, 0x10(%rsp)
movsd 0x18(%r14), %xmm0
movsd 0x28(%r14), %xmm1
callq 0x8188
movsd 0x10(%rsp), %xmm1
movsd %xmm1, (%rsp)
movsd %xmm0, 0x8(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x4040
movups (%rsp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rbx)
jmp 0x404b
movq %rbx, %rdi
movq %r15, %rdx
callq 0x4208
incl %ebp
cmpl 0x8(%r14), %ebp
jl 0x3fef
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5043(%rip), %rdi      # 0x90a8
leaq 0x504e(%rip), %rsi      # 0x90ba
leaq 0x5059(%rip), %rcx      # 0x90cc
movl $0x16, %edx
callq 0x30e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/xukmin[P]rase/sensor-placers.cc
// Function: RegularSensorPlacer::GeneratePositions(std::vector<Position, std::allocator<Position>>*)
void RegularSensorPlacer::GeneratePositions(std::vector<Position>* positions) {
  assert(positions != NULL);
  positions->clear();

  double gap_x = (region_.max_x - region_.min_x) / num_cols_;
  double gap_y = (region_.max_y - region_.min_y) / num_rows_;

  for (int i = 0; i < num_cols_; i++) {
    for (int j = 0; j < num_rows_; j++) {
      positions->push_back(Position(region_.min_x + i * gap_x,
                                    region_.min_y + j * gap_y));
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
testq %rsi, %rsi
je 0x4188
movq %rsi, %rbx
movq %rdi, %r14
movq (%rsi), %rax
cmpq %rax, 0x8(%rsi)
je 0x40a6
movq %rax, 0x8(%rbx)
movl 0x8(%r14), %eax
testl %eax, %eax
jle 0x417b
movsd 0x20(%r14), %xmm2
subsd 0x10(%r14), %xmm2
cvtsi2sd %eax, %xmm0
movsd 0x28(%r14), %xmm3
subsd 0x18(%r14), %xmm3
cvtsi2sdl 0xc(%r14), %xmm1
divsd %xmm0, %xmm2
movsd %xmm2, 0x8(%rsp)
divsd %xmm1, %xmm3
xorl %ebp, %ebp
leaq 0x20(%rsp), %r15
movsd %xmm3, 0x10(%rsp)
cmpl $0x0, 0xc(%r14)
jle 0x416f
xorps %xmm2, %xmm2
cvtsi2sd %ebp, %xmm2
mulsd 0x8(%rsp), %xmm2
xorl %r12d, %r12d
movsd %xmm2, 0x18(%rsp)
movsd 0x10(%r14), %xmm0
addsd %xmm2, %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %r12d, %xmm1
mulsd %xmm3, %xmm1
addsd 0x18(%r14), %xmm1
movsd %xmm0, 0x20(%rsp)
movsd %xmm1, 0x28(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x414f
movupd 0x20(%rsp), %xmm0
movupd %xmm0, (%rsi)
addq $0x10, 0x8(%rbx)
jmp 0x4166
movq %rbx, %rdi
movq %r15, %rdx
callq 0x4208
movsd 0x18(%rsp), %xmm2
movsd 0x10(%rsp), %xmm3
incl %r12d
cmpl 0xc(%r14), %r12d
jl 0x410c
incl %ebp
cmpl 0x8(%r14), %ebp
jl 0x40ef
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4f19(%rip), %rdi      # 0x90a8
leaq 0x4f24(%rip), %rsi      # 0x90ba
leaq 0x4f7f(%rip), %rcx      # 0x911c
movl $0x23, %edx
callq 0x30e0
// File: /workspace/github_cpp_makefile_star2_O1/xukmin[P]rase/sensor-placers.cc
// Function: GeneratePositionsThatCanBeConnected(double, SensorPlacer*, std::vector<Position, std::allocator<Position>>*)
void GeneratePositionsThatCanBeConnected(double communication_range,
                                         SensorPlacer* placer,
                                         std::vector<Position>* positions) {
  double min_communication_range;
  int retries = 10;
  while (retries-- > 0) {
    placer->GeneratePositions(positions);
    if (communication_range >= CalculateMinimumCommunicationRange(*positions)) {
      return;
    }
  }
  fprintf(stderr, "Failed to generate sensors with given communication range!\n");
  exit(1);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movsd %xmm0, 0x8(%rsp)
movl $0xfffffff5, %ebp       # imm = 0xFFFFFFF5
incl %ebp
je 0x41ed
movq (%r14), %rax
movq %r14, %rdi
movq %rbx, %rsi
callq *0x10(%rax)
movq %rbx, %rdi
callq 0x5087
movsd 0x8(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jb 0x41c0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
callq 0x32e1
// File: /workspace/github_cpp_makefile_star2_O1/xukmin[P]rase/sensor-network.cc
// Function: SensorNetwork::FindSensorsWithinRange(Position const&, double, std::vector<int, std::allocator<int>>*) const
bool SensorNetwork::FindSensorsWithinRange(const Position& position,
                                           double range,
                                           std::vector<int>* neighbors) const {
  assert(neighbors != NULL);
  neighbors->clear();

  std::vector<int> candidates;
  FindNeighborCandidates(position, range, &candidates);

  for (int i = 0; i < candidates.size(); i++) {
    int c = candidates[i];
    if (Distance(position, sensors_[c].position()) <= range) {
      neighbors->push_back(c);
    }
  }

  return !neighbors->empty();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movsd %xmm0, 0x8(%rsp)
testq %rdx, %rdx
je 0x4770
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rdx), %rax
cmpq %rax, 0x8(%rdx)
je 0x46a6
movq %rax, 0x8(%rbx)
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdx
movaps %xmm0, (%rdx)
movq $0x0, 0x10(%rdx)
movq %r15, %rdi
movq %r14, %rsi
movsd 0x8(%rsp), %xmm0
callq 0x446e
movq 0x10(%rsp), %rdi
cmpq %rdi, 0x18(%rsp)
je 0x4743
xorl %r13d, %r13d
leaq 0x4(%rsp), %r12
movslq (%rdi,%r13,4), %rax
movl %eax, 0x4(%rsp)
leaq (%rax,%rax,8), %rsi
shlq $0x3, %rsi
addq (%r15), %rsi
movq %r14, %rdi
callq 0x656b
movsd 0x8(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jb 0x472a
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x471f
movl 0x4(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x472a
movq %rbx, %rdi
movq %r12, %rdx
callq 0x5c6a
incq %r13
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
subq %rdi, %rax
sarq $0x2, %rax
cmpq %r13, %rax
ja 0x46de
movq (%rbx), %r14
movq 0x8(%rbx), %rbx
testq %rdi, %rdi
je 0x475c
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x3180
cmpq %rbx, %r14
setne %al
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x4b15(%rip), %rdi      # 0x928c
leaq 0x4a9d(%rip), %rsi      # 0x921b
leaq 0x4b19(%rip), %rcx      # 0x929e
movl $0x57, %edx
callq 0x30e0
jmp 0x4791
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x47ab
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x3180
movq %rbx, %rdi
callq 0x3280
nop
// File: /workspace/github_cpp_makefile_star2_O1/xukmin[P]rase/sensor-network.cc
// Function: SensorNetwork::FindSensorsWithinRange(int, double, std::vector<int, std::allocator<int>>*) const
bool SensorNetwork::FindSensorsWithinRange(int sensor,
                                           double range,
                                           std::vector<int>* neighbors) const {
  assert(neighbors != NULL);
  neighbors->clear();

  std::vector<int> candidates;
  FindNeighborCandidates(sensors_[sensor].position(), range, &candidates);

  for (int i = 0; i < candidates.size(); i++) {
    int c = candidates[i];
    if (distances_[sensor][c] <= range) {
      neighbors->push_back(c);
    }
  }

  return !neighbors->empty();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movsd %xmm0, 0x8(%rsp)
testq %rdx, %rdx
je 0x48ae
movq %rdx, %rbx
movq %rdi, %r14
movq (%rdx), %rax
cmpq %rax, 0x8(%rdx)
je 0x47e3
movq %rax, 0x8(%rbx)
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdx
movaps %xmm0, (%rdx)
movq $0x0, 0x10(%rdx)
movslq %esi, %r15
leaq (%r15,%r15,8), %rsi
shlq $0x3, %rsi
addq (%r14), %rsi
movq %r14, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x446e
movq 0x10(%rsp), %rdi
cmpq %rdi, 0x18(%rsp)
je 0x4881
xorl %r12d, %r12d
leaq (%r15,%r15,2), %r13
leaq 0x4(%rsp), %r15
movslq (%rdi,%r12,4), %rax
movl %eax, 0x4(%rsp)
movq 0x78(%r14), %rcx
movq (%rcx,%r13,8), %rcx
movsd 0x8(%rsp), %xmm0
ucomisd (%rcx,%rax,8), %xmm0
jb 0x4868
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x485d
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x4868
movq %rbx, %rdi
movq %r15, %rdx
callq 0x5c6a
incq %r12
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
subq %rdi, %rax
sarq $0x2, %rax
cmpq %r12, %rax
ja 0x482a
movq (%rbx), %r14
movq 0x8(%rbx), %rbx
testq %rdi, %rdi
je 0x489a
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x3180
cmpq %rbx, %r14
setne %al
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x49d7(%rip), %rdi      # 0x928c
leaq 0x495f(%rip), %rsi      # 0x921b
leaq 0x4a3a(%rip), %rcx      # 0x92fd
movl $0x6a, %edx
callq 0x30e0
jmp 0x48cf
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x48e9
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x3180
movq %rbx, %rdi
callq 0x3280
nop
// File: /workspace/github_cpp_makefile_star2_O1/xukmin[P]rase/sensor-network.cc
// Function: SensorNetwork::CreateChannels(double)
void SensorNetwork::CreateChannels(double communication_range) {
  RemoveChannels();

  communication_range_ = communication_range;
  for (int i = 0; i < sensors_.size(); i++) {
    Sensor& sensor = sensors_[i];
    const Position& p = sensor.position();

    std::vector<int> neighbors;
    FindSensorsWithinRange(i, communication_range, &neighbors);
    for (int j = 0; j < neighbors.size(); j++) {
      if (neighbors[j] != i) {
        sensor.AddNeighbor(neighbors[j]);
      }
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movsd %xmm0, 0x30(%rsp)
movq %rdi, %rbx
callq 0x4414
movsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x90(%rbx)
movq (%rbx), %r13
cmpq %r13, 0x8(%rbx)
je 0x49dc
xorl %r14d, %r14d
leaq 0x10(%rsp), %r15
leaq 0xc(%rsp), %r12
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq %rbx, %rdi
movl %r14d, %esi
movsd 0x30(%rsp), %xmm0
movq %r15, %rdx
callq 0x47b4
movq 0x10(%rsp), %rdi
cmpq %rdi, 0x18(%rsp)
je 0x49a2
leaq (%r14,%r14,8), %rax
leaq 0x10(%r13,%rax,8), %r13
xorl %ebp, %ebp
movl (%rdi,%rbp,4), %eax
cmpq %rax, %r14
je 0x4989
movl %eax, 0xc(%rsp)
movq %r13, %rdi
movq %r12, %rsi
callq 0x575e
incq %rbp
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
subq %rdi, %rax
sarq $0x2, %rax
cmpq %rbp, %rax
ja 0x4972
testq %rdi, %rdi
je 0x49b4
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x3180
incq %r14
movq (%rbx), %r13
movq 0x8(%rbx), %rax
subq %r13, %rax
sarq $0x3, %rax
movabsq $-0x71c71c71c71c71c7, %rcx # imm = 0x8E38E38E38E38E39
imulq %rcx, %rax
cmpq %r14, %rax
ja 0x4936
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x49ed
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4a07
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x3180
movq %rbx, %rdi
callq 0x3280
nop
// File: /workspace/github_cpp_makefile_star2_O1/xukmin[P]rase/sensor-network.cc
// Function: SensorNetwork::AddSensors(std::vector<Position, std::allocator<Position>> const&)
void SensorNetwork::AddSensors(const std::vector<Position>& positions) {
  RemoveSensors();
  for (int i = 0; i < positions.size(); i++) {
    AddSensor(positions[i]);
  }

  CalculateDistances(positions, &distances_);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x4a6e
movq (%rbx), %rsi
cmpq %rsi, 0x8(%rbx)
je 0x4a57
xorl %r15d, %r15d
xorl %r12d, %r12d
addq %r15, %rsi
movq %r14, %rdi
callq 0x4348
incq %r12
movq (%rbx), %rsi
movq 0x8(%rbx), %rax
subq %rsi, %rax
sarq $0x4, %rax
addq $0x10, %r15
cmpq %r12, %rax
ja 0x4a32
addq $0x78, %r14
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x4abf
// File: /workspace/github_cpp_makefile_star2_O1/xukmin[P]rase/sensor-network.cc
// Function: (anonymous namespace)::CalculateDistances(std::vector<Position, std::allocator<Position>> const&, std::vector<std::vector<double, std::allocator<double>>, std::allocator<std::vector<double, std::allocator<double>>>>*)
void CalculateDistances(const std::vector<Position>& positions,
                        std::vector<std::vector<double> >* distances) {
  distances->clear();
  distances->resize(positions.size());
  for (int i = 0; i < distances->size(); i++) {
    (*distances)[i].resize(positions.size());
  }

  for (int i = 0; i < positions.size(); i++) {
    for (int j = i + 1; j < positions.size(); j++) {
      (*distances)[i][j] = (*distances)[j][i] =
          Distance(positions[i], positions[j]);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r12
movq %rdi, %r13
movq (%rsi), %rsi
movq %r12, %rdi
callq 0x53a2
movq 0x8(%r13), %rsi
subq (%r13), %rsi
sarq $0x4, %rsi
movq %r12, %rdi
callq 0x5334
movq (%r12), %rdi
cmpq %rdi, 0x8(%r12)
je 0x4b41
xorl %r15d, %r15d
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
xorl %r14d, %r14d
addq %r15, %rdi
movq 0x8(%r13), %rsi
subq (%r13), %rsi
sarq $0x4, %rsi
callq 0x5370
incq %r14
movq (%r12), %rdi
movq 0x8(%r12), %rax
subq %rdi, %rax
sarq $0x3, %rax
imulq %rbx, %rax
addq $0x18, %r15
cmpq %r14, %rax
ja 0x4b0d
movq %r12, 0x20(%rsp)
movq 0x8(%r13), %rax
cmpq (%r13), %rax
je 0x4c36
movl $0x1, %eax
movq %rax, 0x10(%rsp)
movl $0x3, %eax
movq %rax, 0x8(%rsp)
movl $0x10, %eax
movq %rax, (%rsp)
xorl %ecx, %ecx
movq 0x20(%rsp), %r12
movq %rcx, 0x18(%rsp)
incq %rcx
movq (%r13), %rsi
movq 0x8(%r13), %rax
subq %rsi, %rax
sarq $0x4, %rax
movq %rcx, 0x28(%rsp)
cmpq %rcx, %rax
movq %r13, %r15
jbe 0x4c0a
movq 0x18(%rsp), %rax
movq %rax, %rbp
shlq $0x4, %rbp
leaq (%rax,%rax,2), %rax
movq %rax, 0x30(%rsp)
movq (%rsp), %r13
movq 0x8(%rsp), %rbx
movq 0x10(%rsp), %r14
leaq (%rsi,%rbp), %rdi
addq %r13, %rsi
callq 0x656b
movq (%r12), %rax
movq (%rax,%rbx,8), %rcx
movq 0x18(%rsp), %rdx
movsd %xmm0, (%rcx,%rdx,8)
movq 0x30(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movsd %xmm0, (%rax,%r14,8)
incq %r14
movq (%r15), %rsi
movq 0x8(%r15), %rax
subq %rsi, %rax
sarq $0x4, %rax
addq $0x3, %rbx
addq $0x10, %r13
cmpq %r14, %rax
ja 0x4bbf
movq 0x8(%r15), %rax
subq (%r15), %rax
sarq $0x4, %rax
incq 0x10(%rsp)
addq $0x3, 0x8(%rsp)
addq $0x10, (%rsp)
movq 0x28(%rsp), %rcx
cmpq %rcx, %rax
movq %r15, %r13
ja 0x4b78
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/xukmin[P]rase/routing-builders.cc
// Function: RoutingBuilder::BuildRouting(SensorNetwork*)
void RoutingBuilder::BuildRouting(SensorNetwork* network) {
  network->RemoveParents();
  std::vector<std::vector<int> > candidates;
  bool succeeded = GenerateParentCandidates(network, &candidates);
  assert(succeeded);

  // Base station does not need to and cannot select parent.
  for (int i = 1; i < network->num_sensors(); i++) {
    network->SetParent(i, selector_->SelectParent(i, candidates[i], *network));
  }
  // Make sure the routing generator works as expected.
  assert(network->IsConnectedWithRoutings());
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x4f38
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
movq %rbx, %rdi
callq 0x659c
testb %al, %al
je 0x6a51
movq 0x8(%rbx), %rax
subq (%rbx), %rax
shrq $0x3, %rax
imull $0x38e38e39, %eax, %eax # imm = 0x38E38E39
cmpl $0x2, %eax
jl 0x6a2f
movl $0x1, %r15d
movl $0x18, %r12d
movl $0x8c, %r13d
movq 0x48(%r14), %rdi
movq (%rsp), %rdx
addq %r12, %rdx
movq (%rdi), %rax
movl %r15d, %esi
movq %rbx, %rcx
callq *0x10(%rax)
movq (%rbx), %rcx
movl %eax, (%rcx,%r13)
incq %r15
movq 0x8(%rbx), %rax
subq %rcx, %rax
shrq $0x3, %rax
imull $0x38e38e39, %eax, %eax # imm = 0x38E38E39
cltq
addq $0x18, %r12
addq $0x48, %r13
cmpq %rax, %r15
jl 0x69ee
movq %rbx, %rdi
callq 0x4f72
testb %al, %al
je 0x6a70
movq %rsp, %rdi
callq 0x771a
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x2af7(%rip), %rdi      # 0x954f
leaq 0x2a2d(%rip), %rsi      # 0x948c
leaq 0x2af3(%rip), %rcx      # 0x9559
movl $0x57, %edx
callq 0x30e0
leaq 0x2b15(%rip), %rdi      # 0x958c
leaq 0x2a0e(%rip), %rsi      # 0x948c
leaq 0x2ad4(%rip), %rcx      # 0x9559
movl $0x5e, %edx
callq 0x30e0
jmp 0x6a91
movq %rax, %rbx
movq %rsp, %rdi
callq 0x771a
movq %rbx, %rdi
callq 0x3280
// File: /workspace/github_cpp_makefile_star2_O1/xukmin[P]rase/routing-builders.cc
// Function: NearestFirstParentSelector::SelectParent(int, std::vector<int, std::allocator<int>> const&, SensorNetwork const&)
int NearestFirstParentSelector::SelectParent(int sensor,
                                             const std::vector<int>& candidates,
                                             const SensorNetwork& network) {
  assert(!candidates.empty());
  int parent = candidates[0];
  double min_distance = network.GetDistance(sensor, parent);
  for (int i = 1; i < candidates.size(); i++) {
    double distance = network.GetDistance(sensor, candidates[i]);
    if (distance < min_distance) {
      parent = candidates[i];
      min_distance = distance;
    }
  }

  return parent;
}

// Assembly:
pushq %rax
movq (%rdx), %rdi
movq 0x8(%rdx), %rdx
cmpq %rdx, %rdi
je 0x6fab
movl (%rdi), %eax
subq %rdi, %rdx
sarq $0x2, %rdx
cmpq $0x2, %rdx
jb 0x6fa9
movslq %eax, %r8
movslq %esi, %rsi
movq 0x78(%rcx), %rcx
leaq (%rsi,%rsi,2), %rsi
movq (%rcx,%rsi,8), %rcx
movsd (%rcx,%r8,8), %xmm0
movl $0x1, %esi
movslq (%rdi,%rsi,4), %r8
movsd (%rcx,%r8,8), %xmm1
ucomisd %xmm1, %xmm0
cmoval %r8d, %eax
minsd %xmm0, %xmm1
incq %rsi
movapd %xmm1, %xmm0
cmpq %rsi, %rdx
jne 0x6f87
popq %rcx
retq
leaq 0x25fd(%rip), %rdi      # 0x95af
leaq 0x24d3(%rip), %rsi      # 0x948c
leaq 0x280a(%rip), %rcx      # 0x97ca
movl $0xc0, %edx
callq 0x30e0