Hacker News new | ask | show | jobs
by dnautics 401 days ago
There isn't a real one yet, but to scratch an itch I tried to build one for Zig. It's not complete nor do I have plans to complete it. https://github.com/ityonemo/clr

If zig locks down the AIR (intermediate representation at the function level) it would be ideal for running model checking of various sorts. Just by looking at AIR I found it possible to:

- identify stack pointer leakage

- basic borrow checking

- detect memory leaks

- assign units to variables and track when units are incompatible