aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / evidence / allen-omega-L694 / L758 / independent-review / probes / font-boundary.om
| 1 | note Independent L762 boundary probe; handwritten Omega assertions. |
| 2 | global SnapAf ulong 6 |
| 3 | global SnapAb long 4 |
| 4 | fn probe ok bool to void |
| 5 | check ok add get Checks 0 1 |
| 6 | end |
| 7 | fn main to int |
| 8 | probe not afinit 0 1 |
| 9 | probe not afinit 65 2500 |
| 10 | probe not afinit 1 0 |
| 11 | probe not afinit 1 2501 |
| 12 | probe afinit 1 1 |
| 13 | probe eq get Af 0 12 |
| 14 | probe eq get Af 1 0 |
| 15 | probe afglyph 32 |
| 16 | probe eq get Af 3 0 |
| 17 | probe eq get Af 4 1 |
| 18 | probe afinit 64 2500 |
| 19 | probe eq get Af 0 819 |
| 20 | probe eq get Af 1 2047 |
| 21 | for c ulong 95 |
| 22 | probe afglyph uchar add c 32 |
| 23 | probe le mul get Af 3 get Af 4 65536 |
| 24 | probe le get Af 2 160 |
| 25 | end |
| 26 | probe afglyph 63 |
| 27 | for i ulong 6 |
| 28 | put SnapAf i get Af i |
| 29 | end |
| 30 | for i ulong 4 |
| 31 | put SnapAb i get Ab i |
| 32 | end |
| 33 | put Alpha 0 77 |
| 34 | probe not afinit 0 2500 |
| 35 | same = true |
| 36 | for i ulong 6 |
| 37 | if ne get Af i get SnapAf i |
| 38 | same = false |
| 39 | end |
| 40 | end |
| 41 | for i ulong 4 |
| 42 | if ne get Ab i get SnapAb i |
| 43 | same = false |
| 44 | end |
| 45 | end |
| 46 | if ne get Alpha 0 77 |
| 47 | same = false |
| 48 | end |
| 49 | probe same |
| 50 | probe afglyph 0 |
| 51 | probe afglyph 63 |
| 52 | probe eq get Af 3 get SnapAf 3 |
| 53 | probe afglyph 127 |
| 54 | probe eq get Af 3 get SnapAf 3 |
| 55 | probe afglyph 255 |
| 56 | probe eq get Af 3 get SnapAf 3 |
| 57 | if ne get Fails 0 0 |
| 58 | ret 1 |
| 59 | end |
| 60 | ret 0 |
| 61 | end |