This commit is contained in:
van Hauser
2021-01-08 00:47:52 +01:00
parent fac373ec9e
commit 7b8c8cf12f

View File

@ -56,7 +56,7 @@ double compute_weight(afl_state_t *afl, struct queue_entry *q,
}
if (likely(afl->schedule < RARE)) { weight *= (avg_exec_us / q->exec_us); }
weight *= (q->bitmap_size / avg_bitmap_size);
weight *= (log(q->bitmap_size) / avg_bitmap_size);
weight *= (log(q->tc_ref) / avg_top_size);
if (unlikely(q->favored)) weight *= 5;
@ -103,7 +103,7 @@ void create_alias_table(afl_state_t *afl) {
if (likely(!q->disabled)) {
avg_exec_us += q->exec_us;
avg_bitmap_size += q->bitmap_size;
avg_bitmap_size += log(q->bitmap_size);
avg_top_size += log(q->tc_ref);
++active;