(
&mut self,
store: &mut CorpusStore<MultiStream>,
state: &State,
)
| 480 | |
| 481 | impl InputQueue for CoverageQueue { |
| 482 | fn add_if_interesting( |
| 483 | &mut self, |
| 484 | store: &mut CorpusStore<MultiStream>, |
| 485 | state: &State, |
| 486 | ) -> Option<InputId> { |
| 487 | if !state.new_coverage { |
| 488 | return None; |
| 489 | } |
| 490 | |
| 491 | self.found_input_at_cycle = self.cycles; |
| 492 | let id = store.add(state); |
| 493 | self.new.push(NewInput { |
| 494 | id, |
| 495 | streams: state.input.streams.len(), |
| 496 | len: state.input.total_bytes(), |
| 497 | icount: state.instructions, |
| 498 | new_bits: state.new_bits.len(), |
| 499 | }); |
| 500 | Some(id) |
| 501 | } |
| 502 | } |
| 503 | |
| 504 | /// Determine whether the current input is smaller than an existing entry in the queue that is |
no test coverage detected