mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-13 02:28:09 +00:00
added mmopt power schedule
This commit is contained in:
@ -96,8 +96,8 @@ static void usage(afl_state_t *afl, u8 *argv0, int more_help) {
|
||||
"Execution control settings:\n"
|
||||
" -p schedule - power schedules recompute a seed's performance "
|
||||
"score.\n"
|
||||
" <explore (default), fast, coe, lin, quad, or "
|
||||
"exploit>\n"
|
||||
" <explore (default), fast, coe, lin, quad, exploit, "
|
||||
"mmopt>\n"
|
||||
" see docs/power_schedules.md\n"
|
||||
" -f file - location read by the fuzzed program (stdin)\n"
|
||||
" -t msec - timeout for each run (auto-scaled, 50-%d ms)\n"
|
||||
@ -300,6 +300,10 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
afl->schedule = QUAD;
|
||||
|
||||
} else if (!stricmp(optarg, "mopt") || !stricmp(optarg, "mmopt")) {
|
||||
|
||||
afl->schedule = MMOPT;
|
||||
|
||||
} else if (!stricmp(optarg, "explore") || !stricmp(optarg, "default") ||
|
||||
|
||||
!stricmp(optarg, "normal") || !stricmp(optarg, "afl")) {
|
||||
@ -755,6 +759,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
break;
|
||||
case LIN: OKF("Using linear power schedule (LIN)"); break;
|
||||
case QUAD: OKF("Using quadratic power schedule (QUAD)"); break;
|
||||
case MMOPT: OKF("Using modified MOpt power schedule (MMOPT)"); break;
|
||||
case EXPLORE:
|
||||
OKF("Using exploration-based constant power schedule (EXPLORE)");
|
||||
break;
|
||||
|
Reference in New Issue
Block a user