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

simulator: test the simulator via manual mutation injection #874

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

alpaylan
Copy link
Contributor

@alpaylan alpaylan commented Feb 3, 2025

This PR injects bugs as comments in several places throughout Limbo, which will be used by Marauders Mutation Injection Tool to switch between different variants and test the simulator.

Note: This PR would ideally merge into base:mutations in order to prevent pollution caused by the variants in the main code.

@alpaylan
Copy link
Contributor Author

alpaylan commented Feb 5, 2025

We can start testing the simulator with this change;

The mutation injection tool can be installed with the following command.

cargo install marauders

The shallow optimizer bug can be tested with the following command;

marauders test --expr encode_true_as_false --command "cargo run --bin limbo_sim -- --maximum-size=200 --minimum-size=100"

The marauders test command takes a mutation expression, which defines which mutations should be run, and a command, which should return a non-zero exit code on failure. The details of the mutation expressions are briefly explained on the mutation tool repository.

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.

1 participant