omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / tools / exp445 / arms / examples / has_digit / program.omegese
| 1 | fn has_digit n uint d uchar to bool |
| 2 | t = uint d |
| 3 | found = eq rem n 10 t |
| 4 | while ge n 10 bound 10 |
| 5 | n = div n 10 |
| 6 | if eq rem n 10 t |
| 7 | found = true |
| 8 | end |
| 9 | end |
| 10 | ret found |
| 11 | end |