mc-imperial / dredd

A mutation testing tool designed to work with large C++ (and C) codebases.
Apache License 2.0
13 stars 3 forks source link

Avoid redundant mutations before casts #121

Closed afd closed 2 years ago

afd commented 2 years ago

Sometimes the AST will feature a nest of cast expressions. E.g.:

int foo() {
  unsigned x;
  return static_cast<int>(x);
}

will yield an explicit cast that encloses two implicit casts.

It should suffice to mutate a cast expression only when: