Compilers of noise- and crash-resistant circuits