3 ms·
> Though it won't tell us who is wrong, it tells us one of the pairs is (or both). If it's implementation-defined behavior, it won't even tell you that.
by WalterBright 7y ago
> Though it won't tell us who is wrong, it tells us one of the pairs is (or both).
If it's implementation-defined behavior, it won't even tell you that.
- recursivecaveat 7y agoCSmith is carefully designed to only generate fully defined programs. That obviously limits the scope of bugs it covers quite a lot, but it still managed to uncover quite a few. Its biggest weakness is the difficulty of minimizing and root-causing bugs.
- zellyn 7y agoregehr's posts on program minimization are quite fascinating in their own right: https://blog.regehr.org/archives/1679 https://blog.regehr.org/archives/1679
- kazinator 7y agoThat doesn't matter though; if there is any difference, we can sort out the root cause by inspection. There are also false negatives: either, or both compilers are wrong, or else the test program is wrong (undefined behavior or non-portable), or some combination of these, yet by fluke the results agree. That's no big loss; if you're fuzzing, you're generating a lot of this stuff. If this geneated program won't catch a problem, maybe another one will. Individually, the test cases are cheap.