Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check for if mutations were skipped to MutationalStages #1265

Merged
merged 1 commit into from
May 14, 2023

Conversation

addisoncrump
Copy link
Collaborator

Mutations may not actually be performed on the input, in which case the mutator will return MutationResult::Skipped. We should not execute mutants which have no difference from the parent. This especially affects slow-executing targets.

@addisoncrump addisoncrump changed the title Add check for if mutation succeeded to MutationalStages Add check for if mutations were skipped to MutationalStages May 10, 2023
@addisoncrump
Copy link
Collaborator Author

I didn't add a case for StdPushMutationalStage; not quite sure how to do so.

@addisoncrump
Copy link
Collaborator Author

No idea why this causes concolic and macOS to fail... seems to be GH's side: https://www.githubstatus.com/

@domenukk domenukk merged commit 1da6214 into main May 14, 2023
@domenukk domenukk deleted the mutate-opt branch May 14, 2023 10:03
@addisoncrump
Copy link
Collaborator Author

Can we fuzzbench this change?

@addisoncrump
Copy link
Collaborator Author

addisoncrump commented May 15, 2023

I did so -- seems to be a marginal improvement for fast targets, stronger for slow targets, as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants