interplane.Get Omega
Read in your language

omega-harness

Agent skills for operating, encoding and communicating in Omega (.om) and the AIEN repositories

Brought by drakestapleton

branch main Branches Tags History

omega-harness / examples / bound_input_guard.om

26 lines · 443 bytes Raw Blame History
1note bound_input_guard: the scan of mistake_bound_input.om with an early exit at 65 letters, below
2note the bound of 70, so input of any length gives 0 (not this shape) instead of trap 4; exit 0.
3global b uchar 128
4fn scan e ulong to ulong
5q = ulong 0
6while lt q e bound 70
7if gt q 64
8ret 0
9end
10if ne get b q 65
11break
12end
13q = add q 1
14end
15ret q
16end
17fn main to int
18for i ulong 111
19put b i 65
20end
21r = scan ulong 111
22if eq r 0
23ret 0
24end
25ret 1
26end