Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: