(&mut self, content: &str)
| 48 | } |
| 49 | |
| 50 | fn sync_quiet_round(&mut self, content: &str) -> Result<()> { |
| 51 | if let Some(idx) = content.find("[Mutate Loop]: loop:") { |
| 52 | let mut de = Deserializer::from_input(&content[idx..]); |
| 53 | de.consume_token_until("quiet_round:")?; |
| 54 | let quiet_round = de.parse_number::<usize>()?; |
| 55 | self.quiet_round = quiet_round; |
| 56 | } |
| 57 | Ok(()) |
| 58 | } |
| 59 | |
| 60 | // When the execution stopped or crashed by internal's bugs, sync from the previous state. |
| 61 | pub fn sync_from_previous_state(&mut self, logger: &mut ProgramLogger) -> Result<()> { |
no test coverage detected