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 / seed / qualification / om2 / sec / s3s4 / diag-site-unroll.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note Contract section 4 lines 114-116: the div on line 10 is copied 3 times by unroll; each copy is a |
| 3 | note run-time trap site (divisor a) recorded as omc-site 1 line=10 iter=k. The contract alone does not fix the |
| 4 | note numbering; erratum E7 does: 0-based counter values in emission order, so exactly iter=0, 1, 2 |
| 5 | note (exp/diag-site-unroll.err). Same artifact as diag-site-unroll-plain.om. |
| 6 | om2 diag |
| 7 | fn f a ulong to ulong |
| 8 | s = ulong 0 |
| 9 | for i ulong 3 unroll |
| 10 | s = add s div i a |
| 11 | end |
| 12 | ret s |
| 13 | end |