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 / tests / visor / qualification / hostile.expected

60 lines · 2933 bytes Raw Blame History
1Ω> // Lane 8 hostile session: every line below except the lets and `x + y` must fail closed; the process stays alive.
2Ω> let x: u64 = 7
37
4Ω> let y: u64 = 11
511
6Ω> // comment only
7Ω> frobnicate
8error: source: column 1: unknown name 'frobnicate' (define it first, e.g. let frobnicate: u64 = 7)
9Ω> id aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
10error: id: unknown name or id 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
11Ω> id bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
12error: id: unknown name or id 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'
13Ω> id 000000000000000000000000000000000000000000000000000000000000000g
14error: id: unknown name or id '000000000000000000000000000000000000000000000000000000000000000g'
15Ω> inspect sha256:junk
16error: inspect: unknown name or id 'sha256:junk'
17Ω> inspect 0000000000000000000000000000000000000000000000000000000000000000
18error: inspect: unknown name or id '0000000000000000000000000000000000000000000000000000000000000000'
19Ω> (x + y
20error: source: column 7: expected ')' but found 'end of line'
21Ω> 18446744073709551616: u64
22error: source: column 1: integer literal does not fit in 64 bits
23Ω> 36893488147419103232: u64
24error: source: column 1: integer literal does not fit in 64 bits
25Ω> 256: u8
26error: source: column 1: literal 256 does not fit in u8
27Ω> ((((((((((((((((((((((((((((((((((((((((7: u64))))))))))))))))))))))))))))))))))))))))
28error: source: column 34: expression is nested too deeply for V0 (limit 32)
29Ω> x + y
3018
31Ω> run _ 1 2 3 4 5 6
32error: run: too many arguments (max 4)
33Ω> compare x
34error: compare: expected 2 arguments, got 1
35Ω> let b: bool = true
361
37Ω> realize b
38error: realize: not an APPLY or OPERATION object; only pure binary u64 applies realize in V1
39Ω> run sha256:037a444b0f120fd4bbabd0c16ae143599b231d2469827fccbf9bc79c57bab822
40error: run: sha256:037a444b0f120fd4bbabd0c16ae143599b231d2469827fccbf9bc79c57bab822 is not an APPLY; only pure binary u64 applies run in V1
41Ω> authorize x
42error: unknown: unknown command or invalid source line: 'authorize'
43Ω> submit
44error: source: column 1: unknown name 'submit' (define it first, e.g. let submit: u64 = 7)
45Ω> execute _
46error: unknown: unknown command or invalid source line: 'execute'
47Ω> mint cap
48error: unknown: unknown command or invalid source line: 'mint'
49Ω> grant x
50error: unknown: unknown command or invalid source line: 'grant'
51Ω> effects x
52error: effects: 'x' is not an EFFECT object
53Ω> 1 + 2
54error: source: column 3: ambiguous width: no operand has a type; write e.g. `(1: u64) + 2`
55Ω> (1: u32) + (1: u64)
56error: source: column 14: this annotation is u64 but u32 is required here (V0 never converts between types)
57Ω> x == y
58error: source: column 3: comparisons are not supported in V0 expressions (the existing builder would type the result as the operand type, not bool)
59Ω> let alive: u64 = 42
6042