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 / dot3 / prompt

4 lines · 309 bytes Raw Blame History
1Write a function dot3 that takes six signed 16-bit numbers a, b, c, x, y, z and returns
2a*x + b*y + c*z computed in signed 64-bit arithmetic. Convert the six values to signed 64-bit
3numbers, store them in two arrays of three, and compute the sum with a helper function that reads
4both arrays. It never traps.