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 / apps / interplane-forge / store / head.om

25 lines · 785 bytes Raw Blame History
1note store/head.om: nodes/head.om of the store-reading build (run.sh units with FORGE_STORE). The
2note default branch of the current repository is the default-branch field of its catalog line
3note (store/repos.om put it into fabr after checking it against the branch rule of om/landrec.om and
4note against record 1), so no HEAD file is read. Callers (browse brdefref, dl dldefbr) fall back to
5note "main" when nshead is false, as with nodes/head.om; here that happens only without a current
6note repository.
7global nshb uchar 256
8global nshbl ulong 1
9fn nshead to bool
10put nshbl 0 0
11i = get fridx 0
12if ge i get fan 0
13ret false
14end
15n = get fabl i
16if or eq n 0 gt n len nshb
17ret false
18end
19o = get fabo i
20for k ulong n bound 256
21put nshb k get fabr add o k
22end
23put nshbl 0 n
24ret true
25end