interplane.Get Omega
Read in your language

aien-architecture-mv

Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.

Brought by drakestapleton

branch main Branches Tags History

aien-architecture-mv / evidence / ECOSYSTEM303 / independent / independent.om

172 lines · 2786 bytes Raw Blame History
1note Independent reviewer fixture. All refs are synthetic, never evidence.
2global RC ulong 1
3global Num uchar 20
4text RP "EC303_REVIEW_PASS checks="
5text RF "EC303_REVIEW_FAIL check="
6text RNL "\n"
7text Masks "0001111310023377137733320030033333311100"
8
9fn rout n ulong to void
10p = ulong 20
11while gt n 0 bound 20
12p = sub p 1
13put Num p uchar add rem n 10 48
14n = div n 10
15end
16w = write 1 Num p sub 20 p
17if ne w long sub 20 p
18exit 90
19end
20end
21
22fn rcheck want ulong got ulong to void
23put RC 0 add get RC 0 1
24if ne want got
25w = write 1 RF 0 len RF
26rout get RC 0
27w = write 1 RNL 0 1
28exit 1
29end
30end
31
32fn rfull to void
33for i ulong 800
34put EC i 0
35end
36for i ulong 40
37b = mul i 20
38put EC b add i 1
39put EC add b 1 1
40put EC add b 2 663
41put EC add b 3 787
42put EC add b 4 4
43put EC add b 5 3
44put EC add b 6 7
45for j ulong 10
46put EC add b add j 8 1
47end
48put EC add b 18 786
49end
50end
51
52fn missing col ulong to ulong
53if or eq col 8 eq col 9
54ret 7
55end
56if or eq col 10 eq col 11
57ret 8
58end
59if or eq col 12 eq col 14
60ret 14
61end
62if eq col 13
63ret 15
64end
65if eq col 15
66ret 12
67end
68if eq col 16
69ret 10
70end
71ret 11
72end
73
74fn allrefs to void
75rfull
76rcheck 0 ecvalidate 1 40
77for i ulong 40
78for j ulong 10
79col = add j 8
80offset = add mul i 20 col
81put EC offset 0
82rcheck missing col ecvalidate 1 40
83put EC offset 1
84end
85b = mul i 20
86put EC add b 18 787
87rcheck 9 ecvalidate 1 40
88put EC add b 18 786
89put EC add b 5 2
90rcheck 13 ecvalidate 1 40
91put EC add b 5 3
92put EC add b 3 0
93rcheck 4 ecvalidate 1 40
94put EC add b 3 787
95put EC add b 19 18446744073709551615
96rcheck 16 ecvalidate 1 40
97put EC add b 19 0
98end
99end
100
101fn graph to void
102rfull
103for i ulong 39
104put EC add mul i 20 7 shl ulong 1 add i 1
105end
106rcheck 0 ecvalidate 1 40
107for i ulong 39
108b = mul add i 1 20
109for s ulong 3
110put EC add b 4 s
111rcheck 18 ecvalidate 1 40
112end
113put EC add b 4 4
114end
115put EC 787 1
116rcheck 17 ecvalidate 1 40
117for i ulong 40
118put EC add mul i 20 4 0
119end
120rcheck 17 ecvalidate 1 40
121put EC 787 0
122for i ulong 40
123put EC add mul i 20 4 4
124end
125note Full reversal tests ID-based dependencies, not row-based traversal.
126for i ulong 20
127a = mul i 20
128b = mul sub 39 i 20
129for j ulong 20
130t = get EC add a j
131put EC add a j get EC add b j
132put EC add b j t
133end
134end
135rcheck 0 ecvalidate 1 40
136put EC 4 2
137rcheck 18 ecvalidate 1 40
138rfull
139put EC 7 1099511627776
140rcheck 6 ecvalidate 1 40
141put EC 7 18446744073709551615
142rcheck 6 ecvalidate 1 40
143end
144
145fn policies to void
146rfull
147rcheck 1 ecvalidate 18446744073709551615 40
148rcheck 2 ecvalidate 1 0
149rcheck 2 ecvalidate 1 18446744073709551615
150for i ulong 40
151b = mul i 20
152put EC add b 6 0
153need = sub ulong get Masks i 48
154rcheck need ecrequire add i 1
155if ne need 0
156rcheck 19 ecvalidate 1 40
157else
158rcheck 0 ecvalidate 1 40
159end
160put EC add b 6 7
161end
162end
163
164fn main to int
165allrefs
166graph
167policies
168w = write 1 RP 0 len RP
169rout get RC 0
170w = write 1 RNL 0 1
171ret 0
172end