less branches, cleanup
MODIFY
include/afl-fuzz.h
include/afl-fuzz.h
#define CASE_PREFIX "id_"
#endif /* ^!SIMPLE_FILES */
-#define STAGE_BUF_SIZE \
- (64) /* usable size of the stage name buf in afl_state \
- */
+#define STAGE_BUF_SIZE (64) /* usable size for stage name buf in afl_state */
extern s8 interesting_8[INTERESTING_8_LEN];
extern s16 interesting_16[INTERESTING_8_LEN + INTERESTING_16_LEN];

MODIFY
src/afl-fuzz-mutators.c
src/afl-fuzz-mutators.c
@@ -198,7 +198,6 @@ u8 trim_case_custom(afl_state_t *afl, struct queue_entry *q, u8 *in_buf) {
u8 val_buf[STRINGIFY_VAL_SIZE_MAX];
- if (afl->stage_name != afl->stage_name_buf)
afl->stage_name = afl->stage_name_buf;
afl->bytes_trim_in += q->len;

MODIFY
src/afl-fuzz-one.c
src/afl-fuzz-one.c
@@ -1682,7 +1682,6 @@ havoc_stage:
perf_score = orig_perf;
snprintf(afl->stage_name_buf, STAGE_BUF_SIZE, "splice %u", splice_cycle);
- if (unlikely(afl->stage_name != afl->stage_name_buf))
afl->stage_name = afl->stage_name_buf;
afl->stage_short = "splice";
afl->stage_max = SPLICE_HAVOC * perf_score / afl->havoc_div / 100;
@@ -3581,7 +3580,6 @@ pacemaker_fuzzing:
snprintf(afl->stage_name_buf, STAGE_BUF_SIZE,
MOpt_globals.splice_stageformat, splice_cycle);
- if (afl->stage_name != afl->stage_name_buf)
afl->stage_name = afl->stage_name_buf;
afl->stage_short = MOpt_globals.splice_stagenameshort;
afl->stage_max = SPLICE_HAVOC * perf_score / afl->havoc_div / 100;

MODIFY
src/afl-fuzz-run.c
src/afl-fuzz-run.c
@@ -501,7 +501,6 @@ void sync_fuzzers(afl_state_t *afl) {
snprintf(afl->stage_name_buf, STAGE_BUF_SIZE, "sync %u", ++sync_cnt);
- if (afl->stage_name != afl->stage_name_buf)
afl->stage_name = afl->stage_name_buf;
afl->stage_cur = 0;
afl->stage_max = 0;
@@ -611,7 +610,6 @@ u8 trim_case(afl_state_t *afl, struct queue_entry *q, u8 *in_buf) {
if (q->len < 5) return 0;
- if (afl->stage_name != afl->stage_name_buf)
afl->stage_name = afl->stage_name_buf;
afl->bytes_trim_in += q->len;

less branches, cleanup