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-rolled.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note Contract section 4 lines 114-116: a rolled loop is not unrolled, so its one trap site (the run-time |
| 3 | note divisor a, trap 2) is recorded once with iter=-, at line 10. Function mode. Expected exp/diag-site-rolled.err. |
| 4 | note |
| 5 | note |
| 6 | om2 diag |
| 7 | fn f a ulong to ulong |
| 8 | s = ulong 0 |
| 9 | for i ulong 3 |
| 10 | s = add s div i a |
| 11 | end |
| 12 | ret s |
| 13 | end |