Modular arithmetic NuSMV fix: y= ((x-c) mod d) + c;