mulmod.miaou
← Le code · src/rsa/mulmod.miaou · 18 lignes
(node mulmod
(params (a Grand) (b Grand) (n Grand))
(returns Grand)
(intent "a fois b modulo n (a et b positifs, n positif non nul)")
(origin "duel 4 : RSA en miaou")
(effects)
(uses ../outil/miaou/gr_mul ../outil/miaou/gr_divmod)
(requires
true)
(ensures
true)
(examples
(ex ((record Grand (neg false) (mots (list 65))) (record Grand (neg false) (mots (list 65))) (record Grand (neg false) (mots (list 3233))))
(record Grand (neg false) (mots (list 992)))))
(equivalence exact)
(body.high
(get (gr_divmod (gr_mul a b) n) r))
(end node mulmod))