interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / tools / exp445 / arms / examples / sum_squares3 / prompt

3 lines · 236 bytes Raw Blame History
1Write a function sum_squares3 that takes three signed 16-bit numbers a, b and c and returns
2a*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
3number, the run stops with trap 1 (overflow).