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 / omc / sites / found-harray-1.om

18 lines · 416 bytes Raw Blame History
1note sites: found by a one-token change of a tracked program; reaches the omc error site in harray (code 7)
2note files: create, stat and remove one file in the current directory.
3text nm "effects.tmp"
4fn main to int
5fd = int fopen nm 0 len nm 578 384
6if lt fd 0
7ret 1
8end
9w = write fd nm 0 len nm
10st = new long 128 0
11r = fstat fd st 0 128
12c = fclose fd
13u = unlink nm 0 len nm
14if or ne r 0 ne u 0
15ret 2
16end
17ret 0
18end