@@ -30,7 +30,7 @@ use crate::{
3030 mutators:: {
3131 MultiMutator , MutationResult , Mutator , Named , buffer_self_copy, mutations:: buffer_copy,
3232 } ,
33- observers:: cmp:: { AFLppCmpValuesMetadata , CmpValues , CmpValuesMetadata } ,
33+ observers:: cmp:: { AflppCmpValuesMetadata , CmpValues , CmpValuesMetadata } ,
3434 stages:: TaintMetadata ,
3535 state:: { HasCorpus , HasMaxSize , HasRand } ,
3636} ;
@@ -849,7 +849,7 @@ const CMP_ATTRIBUTE_IS_TRANSFORM: u8 = 64;
849849
850850/// AFL++ redqueen mutation
851851#[ derive( Debug , Default ) ]
852- pub struct AFLppRedQueen {
852+ pub struct AflppRedQueen {
853853 enable_transform : bool ,
854854 enable_arith : bool ,
855855 text_type : TextType ,
@@ -858,7 +858,7 @@ pub struct AFLppRedQueen {
858858 last_corpus_id : Option < CorpusId > ,
859859}
860860
861- impl AFLppRedQueen {
861+ impl AflppRedQueen {
862862 #[ inline]
863863 fn swapa ( x : u8 ) -> u8 {
864864 ( x & 0xf8 ) + ( ( x & 7 ) ^ 0x07 )
@@ -1321,7 +1321,7 @@ impl AFLppRedQueen {
13211321 }
13221322}
13231323
1324- impl < I , S > MultiMutator < I , S > for AFLppRedQueen
1324+ impl < I , S > MultiMutator < I , S > for AflppRedQueen
13251325where
13261326 S : HasMetadata + HasRand + HasMaxSize + HasCorpus < I > + HasCurrentCorpusId ,
13271327 I : ResizableMutator < u8 > + From < Vec < u8 > > + HasMutatorBytes ,
@@ -1342,7 +1342,7 @@ where
13421342
13431343 let ( cmp_len, cmp_meta, taint_meta) = {
13441344 let ( Some ( cmp_meta) , Some ( taint_meta) ) = (
1345- state. metadata_map ( ) . get :: < AFLppCmpValuesMetadata > ( ) ,
1345+ state. metadata_map ( ) . get :: < AflppCmpValuesMetadata > ( ) ,
13461346 state. metadata_map ( ) . get :: < TaintMetadata > ( ) ,
13471347 ) else {
13481348 return Ok ( vec ! [ ] ) ;
@@ -1370,7 +1370,7 @@ where
13701370 // println!("orig: {:#?} new: {:#?}", orig_cmpvals, new_cmpvals);
13711371
13721372 // Compute when mutating it for the 1st time.
1373- let current_corpus_id = state. current_corpus_id ( ) ?. ok_or_else ( || Error :: key_not_found ( "No corpus-id is currently being fuzzed, but called AFLppRedQueen ::multi_mutated()." ) ) ?;
1373+ let current_corpus_id = state. current_corpus_id ( ) ?. ok_or_else ( || Error :: key_not_found ( "No corpus-id is currently being fuzzed, but called AflppRedQueen ::multi_mutated()." ) ) ?;
13741374 if self . last_corpus_id . is_none ( ) || self . last_corpus_id . unwrap ( ) != current_corpus_id {
13751375 self . text_type = check_if_text ( orig_bytes, orig_bytes. len ( ) ) ;
13761376 self . last_corpus_id = Some ( current_corpus_id) ;
@@ -1920,15 +1920,15 @@ where
19201920 }
19211921}
19221922
1923- impl Named for AFLppRedQueen {
1923+ impl Named for AflppRedQueen {
19241924 fn name ( & self ) -> & Cow < ' static , str > {
1925- static NAME : Cow < ' static , str > = Cow :: Borrowed ( "AFLppRedQueen " ) ;
1925+ static NAME : Cow < ' static , str > = Cow :: Borrowed ( "AflppRedQueen " ) ;
19261926 & NAME
19271927 }
19281928}
19291929
1930- impl AFLppRedQueen {
1931- /// Create a new `AFLppRedQueen ` Mutator
1930+ impl AflppRedQueen {
1931+ /// Create a new `AflppRedQueen ` Mutator
19321932 #[ must_use]
19331933 pub fn new ( ) -> Self {
19341934 Self {
@@ -2111,7 +2111,7 @@ mod tests {
21112111 use std:: fs;
21122112
21132113 #[ cfg( feature = "std" ) ]
2114- use super :: { AFLppRedQueen , Tokens } ;
2114+ use super :: { AflppRedQueen , Tokens } ;
21152115
21162116 #[ cfg( feature = "std" ) ]
21172117 #[ test]
@@ -2134,7 +2134,7 @@ token2="B"
21342134 #[ cfg( feature = "std" ) ]
21352135 #[ test]
21362136 fn test_token_mutations ( ) {
2137- let rq = AFLppRedQueen :: with_cmplog_options ( true , true ) ;
2137+ let rq = AflppRedQueen :: with_cmplog_options ( true , true ) ;
21382138 let pattern = 0 ;
21392139 let repl = 0 ;
21402140 let another_pattern = 0 ;
0 commit comments