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 / seed / qualification / om2 / sec / s3s4 / diag-site-unroll.om

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