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-nest.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note Contract section 4 lines 114-116 and erratum E7: omc-site records in emission order, iter = the 0-based |
| 3 | note counters of the enclosing UNROLLED loops, outer to inner, joined by ".", or "-". Function mode; the only |
| 4 | note trap sites are the unsigned divs by the run-time divisor a (OMEGESE 9.3 trap 2): line 8 (-), line 11 |
| 5 | note (copies 0.0 0.1 1.0 1.1), line 14 in a rolled loop inside unroll i (copies 0 1). Exact stderr exp/diag-site-nest.err. |
| 6 | om2 diag |
| 7 | fn f a ulong to ulong |
| 8 | s = div 7 a |
| 9 | for i ulong 2 unroll |
| 10 | for j ulong 2 unroll |
| 11 | s = add s div add i j a |
| 12 | end |
| 13 | for k ulong 2 |
| 14 | s = add s div k a |
| 15 | end |
| 16 | end |
| 17 | ret s |
| 18 | end |