Skip to content

Commit

Permalink
remove research mutators
Browse files Browse the repository at this point in the history
  • Loading branch information
echebbi committed Mar 31, 2024
1 parent 5246ac5 commit f908171
Showing 1 changed file with 6 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,48 +49,18 @@ public enum Mutators {
NON_VOID_METHOD_CALLS("Non Void Method Call", "Removes method calls to non void methods. Their return value is replaced by the Java Default Value for that specific type"),
PRIMITIVE_RETURNS("Primite Returns", "Replaces int, short, long, char, float and double return values with 0", true),
REMOVE_CONDITIONALS("Remove Conditionals", "Removes all conditionals statements such that the guarded statements always execute"),
REMOVE_CONDITIONALS_EQ_IF("Remove Equal Conditionals If", "Remove equal conditions and replace with true, execute if part"),
REMOVE_CONDITIONALS_EQ_ELSE("Remove Equal Conditionals Else", "Remove equal conditions and replace with false, execute else part"),
REMOVE_CONDITIONALS_ORD_IF("Remove Order Checks If", "Remove order conditions and replace with true, execute if part"),
REMOVE_CONDITIONALS_ORD_ELSE("Remove Order Checks Else", "Remove order conditions and replace with false, execute else part"),
REMOVE_CONDITIONALS_EQUAL_IF("Remove Equal Conditionals If", "Remove equal conditions and replace with true, execute if part"),
REMOVE_CONDITIONALS_EQUAL_ELSE("Remove Equal Conditionals Else", "Remove equal conditions and replace with false, execute else part"),
REMOVE_CONDITIONALS_ORDER_IF("Remove Order Checks If", "Remove order conditions and replace with true, execute if part"),
REMOVE_CONDITIONALS_ORDER_ELSE("Remove Order Checks Else", "Remove order conditions and replace with false, execute else part"),
REMOVE_INCREMENTS("Remove Increments", "Removes local variable increments"),
EXPERIMENTAL_ARGUMENT_PROPAGATION("Experimentation Argument Propagation", "Replaces method call with one of its parameters of matching type"),
EXPERIMENTAL_BIG_INTEGER("Experimental Big Integer", "Swaps big integer methods"),
EXPERIMENTAL_BIG_DECIMAL("Experimental Big Integer", "Swaps big decimal methods"),
EXPERIMENTAL_NAKED_RECEIVER("Experimental Naked Receiver", "Replaces method call with a naked receiver"),
EXPERIMENTAL_MEMBER_VARIABLE("Experimental Member Variable", "Removes assignments to member variables. Can even remove assignments to final members. The members will be initialized with their Java Default Value"),
EXPERIMENTAL_SWITCH("Experimental Switch", "Finds the first label within a switch statement that differs from the default label. Mutates the switch statement by replacing the default label (wherever it is used) with this label. All the other labels are replaced by the default one"),
ABS("Negation", "Replaces any use of a numeric variable (local variable, field, array cell) with its negation"),
AOR("Arithmetic Operator Replacement", "Like the Math mutator, replaces binary arithmetic operations for either integer or floating-point arithmetic with another operation"),
AOR_1("Arithmetic Operator Replacement 1", "+ -> -, - -> +, * -> /, / -> *, % -> *"),
AOR_2("Arithmetic Operator Replacement 2", "+ -> *, - -> *, * -> %, / -> %, % -> /"),
AOR_3("Arithmetic Operator Replacement 3", "+ -> /, - -> /, * -> +, / -> +, % -> +"),
AOR_4("Arithmetic Operator Replacement 4", "+ -> %, - -> %, * -> -, / -> -, % -> -"),
AOD("Arithmetic Operator Deletion", "Replaces an arithmetic operation with one of its members"),
AOD1("Arithmetic Operator Deletion 1", "int a = b + c; -> int a = b;"),
AOD2("Arithmetic Operator Deletion 2", "int a = b + c; -> int a = c;"),
CRCR("Constant Replacement", "Like the Inline Constant mutator, mutates inline constant"),
CRCR1("Constant Replacement 1", "Replaces the inline constant c with 1"),
CRCR2("Constant Replacement 2", "Replaces the inline constant c with 0"),
CRCR3("Constant Replacement 3", "Replaces the inline constant c with -1"),
CRCR4("Constant Replacement 4", "Replaces the inline constant c with -c"),
CRCR5("Constant Replacement 5", "Replaces the inline constant c with c+1"),
CRCR6("Constant Replacement 6", "Replaces the inline constant c with c-1"),
OBBN("Bitwise Operator", "Mutates bitwise and (&) and or (|)"),
OBBN1("Bitwise Operator 1", "a & b; -> a | b;"),
OBBN2("Bitwise Operator 2", "a & b; -> a;"),
OBBN3("Bitwise Operator 3", "a & b; -> b;"),
ROR("Relational Operator Replacement", "Replaces a relational operator with another one"),
ROR1("Relational Operator Replacement 1", "< -> <=, <= -> <, > -> <, >= -> <, == -> <, != -> <"),
ROR2("Relational Operator Replacement 2", "< -> >, <= -> >, > -> <=, >= -> <=, == -> <=, != -> <="),
ROR3("Relational Operator Replacement 3", "< -> >=, <= -> >=, > -> >=, >= -> >, == -> >, != -> >"),
ROR4("Relational Operator Replacement 4", "< -> ==, <= -> ==, > -> ==, >= -> ==, == -> >=, != -> >="),
ROR5("Relational Operator Replacement 5", "< -> !=, <= -> !=, > -> !=, >= -> !=, == -> !=, != -> =="),
// XXX REMOVE_SWITCH("",""), no data on the page of pitest
UOI1("Unary Operator Insertion 1", "Inserts a unary operator to a variable call from the variable a to a++"),
UOI2("Unary Operator Insertion 2", "Inserts a unary operator to a variable call from the variable a to a--"),
UOI3("Unary Operator Insertion 3", "Inserts a unary operator to a variable call from the variable a to ++a"),
UOI4("Unary Operator Insertion 4", "Inserts a unary operator to a variable call from the variable a to --a"),
UOI("Unary Operator Insertion", "Inserts a unary operator (increment or decrement) to a variable call. Affects local variables, array variables, fields and parameters");
REMOVE_SWITCH("Remove Switch","Finds the first switch label that differs from the default label, then replaces the default label with this label, and all other labels are replaced with the default one");

/**
* Descriptor which is used to display the name of this mutator in a table
Expand Down

0 comments on commit f908171

Please sign in to comment.