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 / dot3 / prompt
| 1 | Write a function dot3 that takes six signed 16-bit numbers a, b, c, x, y, z and returns |
| 2 | a*x + b*y + c*z computed in signed 64-bit arithmetic. Convert the six values to signed 64-bit |
| 3 | numbers, store them in two arrays of three, and compute the sum with a helper function that reads |
| 4 | both arrays. It never traps. |