News for hackers. Stuff that matters.
Re:Why Is SQLite Coded in C and not Rust by eesmith on Wednesday October 15, 2025 @03:05AM (#45588982)
The 100% branch testing is on the compiled binary. To exempt unreachable assert branches, turn off assertions, compile, and test.

A more complex C program can have index range checking at a different place than the simple array access. The compiler's flow analysis isn't always able to confirm that the index is guaranteed to be checked. If it therefore adds a cautionary (and unneeded) range check, then this code branch can never be exercised, making the code no longer 100% branch tested.

There are no comments on this comment yet.