Replies: 2 comments 1 reply
-
Interesting idea! I wonder if Miri might also allow useful mutations at the MIR level...? Although, you would still have to run the code, which might still be slower... |
Beta Was this translation helpful? Give feedback.
1 reply
-
I was reading https://notgull.net/cautionary-unsafe-tale/ and I thought it might be good to have an option to run Miri tests in support of mutating unsafe code... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I saw a mention of a fuzzing tool generating code that was then executed under Miri, in order to avoid the cost of compilation of small pieces of code. It occurred to me that
cargo-mutants
might benefit from the same technique, at least for programs where the total amount of code to compile is large, but the tests don't execute very many operations.So, I tried a simple patch removing
cargo build
and replacingcargo test
withcargo miri test
and — it's slower in all the test cases I tried. The timings feel likemiri test
has a significant startup cost in loading the program and running each test, but I don't know if that's what is actually going on.Just thought I'd report this failed idea in case anyone else was thinking of trying it, or if there's a way to make it better.
Beta Was this translation helpful? Give feedback.
All reactions