c4-project / c4f

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

Fuzzer-generated booleans have integer initial values #155

Closed MattWindsor91 closed 4 years ago

MattWindsor91 commented 4 years ago

This leads to the amusing situation where, for example, a bool is generated with its initial value set to -1, and then the fuzzer generates lots of comparisons from that bool to -1, which in turn seem to cause erroneous behaviour.

It's likely that this isn't getting properly flagged at Litmus harness compile-time because Litmus thinks everything is an int: see #122.