c4-project / c4f

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

Add (X & -1 == X) to instruction rules #232

Closed MattWindsor91 closed 3 years ago

MattWindsor91 commented 3 years ago

I was somewhat averse to doing this, as it depends on twos-complement semantics for bitwise operations, but LLVM does it (see AtomicExpand::IsIdempotentRMW), so we should probably do it too.