How do you run ASAN/Valgrind on a Mac?

Unfortunately, Valgrind doesn’t support newer Macs. For ASAN, Apple doesn’t
provide a version of Clang that is ASAN-enabled. You can try compiling it
yourself, but how to do that is out of the scope of this page.