c4-project / c4f

The C4 Concurrent C Fuzzer
MIT License
14 stars 1 forks source link

Fix missing initialisers for delitmusified local variables #248

Closed MattWindsor91 closed 3 years ago

MattWindsor91 commented 3 years ago

When we delitmusify in vars-as-parameters mode, the initialisers of local variables are lost. This is less than optimal.

There are myriad ways to fix this, with advantages and disadvantages:

I think I'll convert to assignments for now, and maybe add other solutions as flags later on.

MattWindsor91 commented 3 years ago

(NB: I fixed this with the third option for now, as it turned out perversely to be easy-ish to implement; the first option may become a flag later)