IC compilers based on modular arithmetic