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 / sum_squares3 / prompt
| 1 | Write a function sum_squares3 that takes three signed 16-bit numbers a, b and c and returns |
| 2 | a*a + b*b + c*c as a signed 16-bit number. If a square or the sum does not fit in a signed 16-bit |
| 3 | number, the run stops with trap 1 (overflow). |