afl-fuzz.c
static u8 fuzz_one(char** argv) {
u64 now_case_time  = get_cur_time();
  if((now_case_time - start_time) >= 5*24*60*60*1000){
    exit(0);
  }
	int key_val_lv = 0;
	u64 old_exec = total_execs;
	if (limit_time_sig == 0)
		key_val_lv = normal_fuzz_one(argv);
	else
	{
		if (key_module == 0)
			key_val_lv = pilot_fuzzing(argv);
		else if (key_module == 1)
			key_val_lv = core_fuzzing(argv);
		else if (key_module == 2)
			pso_updating();
	}
  if(!stop_measure){
    queue_cur->exec_num += total_execs - old_exec;
  }
  u64 case_time_diff = get_cur_time() - last_path_time;
  cycle_time_diff_total += case_time_diff;
  cycle_fuzz_one_total++;
	return key_val_lv;	
}
/* Added statistics on the number of interesting cases and execution times. 
    Update matate_num in the case. Modified by LH. */
Added statistics on the number of interesting cases and execution times.
Update matate_num in the case. Modified by LH.
Added statistics on the number of interesting cases and execution times . Update matate_num in the case . Modified by LH .
static u8 fuzz_one(char** argv) {
u64 now_case_time  = get_cur_time();
  if((now_case_time - start_time) >= 5*24*60*60*1000){
    exit(0);
  }
	int key_val_lv = 0;
	u64 old_exec = total_execs;
	if (limit_time_sig == 0)
		key_val_lv = normal_fuzz_one(argv);
	else
	{
		if (key_module == 0)
			key_val_lv = pilot_fuzzing(argv);
		else if (key_module == 1)
			key_val_lv = core_fuzzing(argv);
		else if (key_module == 2)
			pso_updating();
	}
  if(!stop_measure){
    queue_cur->exec_num += total_execs - old_exec;
  }
  u64 case_time_diff = get_cur_time() - last_path_time;
  cycle_time_diff_total += case_time_diff;
  cycle_fuzz_one_total++;
	return key_val_lv;	
}
static u8 fuzz_one ( char * * argv ) { u64 now_case_time = get_cur_time ( ) ; if ( ( now_case_time - start_time ) >= 5 * 24 * 60 * 60 * 1000 ) { exit ( 0 ) ; } int key_val_lv = 0 ; u64 old_exec = total_execs ; if ( limit_time_sig == 0 ) key_val_lv = normal_fuzz_one ( argv ) ; else { if ( key_module == 0 ) key_val_lv = pilot_fuzzing ( argv ) ; else if ( key_module == 1 ) key_val_lv = core_fuzzing ( argv ) ; else if ( key_module == 2 ) pso_updating ( ) ; } if ( ! stop_measure ) { queue_cur -> exec_num += total_execs - old_exec ; } u64 case_time_diff = get_cur_time ( ) - last_path_time ; cycle_time_diff_total += case_time_diff ; cycle_fuzz_one_total ++ ; return key_val_lv ; }
Added statistics on the number of interesting cases and execution times.
Added statistics on the number of interesting cases and execution times .