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 side-effectful expression generators #227

Open
MattWindsor91 opened this issue Oct 19, 2020 · 1 comment
Open

Add side-effectful expression generators #227

MattWindsor91 opened this issue Oct 19, 2020 · 1 comment
Labels
Area:Fuzzer Specifically affecting the program mutator Type:Enhancement New feature or request

Comments

@MattWindsor91
Copy link
Collaborator

MattWindsor91 commented Oct 19, 2020

Per #226, there are situations where we want the expression generators to consider expressions that can modify variables. As well as that situation (dead paths of side-effecting expressions), this also includes anywhere within dead code, as well as (and this is probably more complex) variables where we don't actually care about the value.

Also per #226, I'm not entirely sure of the best way to do this without blowing up the expression generator, since side-effectful generators are just the usual type-safe generators but with more permissive nodes for things like atomic fetches. My first thought would be to functor-ise the main generators, but this is pretty heavyweight.

@MattWindsor91 MattWindsor91 added Type:Enhancement New feature or request Area:Fuzzer Specifically affecting the program mutator labels Oct 19, 2020
@MattWindsor91
Copy link
Collaborator Author

When editing the above comment, I suddenly thought that one way of dealing with this might be having one generator, but marking variables that can be side-effected and/or being in a dead-code position (probably the latter) in the incoming variable environment. This gels well with a few environment changes I wanted to make a while ago, but got distracted from (and I can't remember quite what they were now!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:Fuzzer Specifically affecting the program mutator Type:Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant