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 / core / rsi / tests / reuse-eval / judge-build.om

76 lines · 1057 bytes Raw Blame History
1note units: sha256 ref judge
2note needs: drive
3note SPDX-License-Identifier: Apache-2.0
4text JBOMC "/no/compiler/needed/by/fake"
5text JBMAN "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
6text JBFAIL "fail10"
7fn main to int
8if ne argcnt 3
9ret 2
10end
11b = jdsarg 19 1
12b = jdsarg 18 2
13jdscp 30 19
14jdscp 9 19
15jdsc 9 47
16jdsc 9 108
17jdsclr 20
18for i ulong len JBOMC
19jdsc 20 get JBOMC i
20end
21jdsdsh 11
22jdsdsh 21
23jdx0
24rc = jdbuild 1 0
25if ne rc 0
26ret 1
27end
28jdsclr 1
29for i ulong len JBMAN
30jdsc 1 get JBMAN i
31end
32if not jdseq 10 1
33ret 3
34end
35jdspath 0 30 JWACQ 7
36n = jdldw 0 JDLOGW 16
37if ne n 8
38ret 4
39end
40if ne get JDM JDLOGW 1
41ret 5
42end
43if ne get JDM add JDLOGW 1 0
44ret 6
45end
46if lt get JDM add JDLOGW 2 2000000
47ret 7
48end
49if ne get JDM add JDLOGW 5 0
50ret 8
51end
52if ne get JDM add JDLOGW 6 37
53ret 9
54end
55jdsclr 0
56for i ulong len JBFAIL
57jdsc 0 get JBFAIL i
58end
59jdxadd 0
60rc = jdbuild 1 1
61if ne rc 10
62ret 10
63end
64jdspath 0 30 JWACQ 7
65n = jdldw 0 JDLOGW 16
66if ne n 16
67ret 11
68end
69if ne get JDM add JDLOGW 13 10
70ret 12
71end
72if ne get JDSL 10 0
73ret 13
74end
75ret 0
76end