metadata to solutions
This commit is contained in:
parent
2f7bb8d532
commit
7b772fedc5
@ -511,8 +511,13 @@ where
|
|||||||
|
|
||||||
if is_solution {
|
if is_solution {
|
||||||
// If the input is a solution, add it to the respective corpus
|
// If the input is a solution, add it to the respective corpus
|
||||||
self.solutions_mut().add(Testcase::new(input.clone()))?;
|
let mut testcase = Testcase::new(input.clone());
|
||||||
|
self.objectives_mut().append_metadata_all(&mut testcase)?;
|
||||||
|
self.solutions_mut().add(testcase)?;
|
||||||
|
} else {
|
||||||
|
self.objectives_mut().discard_metadata_all(&input)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
let corpus_idx = self.add_if_interesting(&input, fitness, scheduler)?;
|
let corpus_idx = self.add_if_interesting(&input, fitness, scheduler)?;
|
||||||
if corpus_idx.is_some() {
|
if corpus_idx.is_some() {
|
||||||
let observers_buf = manager.serialize_observers(observers)?;
|
let observers_buf = manager.serialize_observers(observers)?;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user