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-rolled.om

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