function MultModM input Real a; input Real s; input Real c; input Real m; output Real v; end MultModM;