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
omega-mv / tests / visor / qualification / hostile.expected
| 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 |
| 3 | 7 |
| 4 | Ω> let y: u64 = 11 |
| 5 | 11 |
| 6 | Ω> // comment only |
| 7 | Ω> frobnicate |
| 8 | error: source: column 1: unknown name 'frobnicate' (define it first, e.g. let frobnicate: u64 = 7) |
| 9 | Ω> id aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |
| 10 | error: id: unknown name or id 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' |
| 11 | Ω> id bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb |
| 12 | error: id: unknown name or id 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' |
| 13 | Ω> id 000000000000000000000000000000000000000000000000000000000000000g |
| 14 | error: id: unknown name or id '000000000000000000000000000000000000000000000000000000000000000g' |
| 15 | Ω> inspect sha256:junk |
| 16 | error: inspect: unknown name or id 'sha256:junk' |
| 17 | Ω> inspect 0000000000000000000000000000000000000000000000000000000000000000 |
| 18 | error: inspect: unknown name or id '0000000000000000000000000000000000000000000000000000000000000000' |
| 19 | Ω> (x + y |
| 20 | error: source: column 7: expected ')' but found 'end of line' |
| 21 | Ω> 18446744073709551616: u64 |
| 22 | error: source: column 1: integer literal does not fit in 64 bits |
| 23 | Ω> 36893488147419103232: u64 |
| 24 | error: source: column 1: integer literal does not fit in 64 bits |
| 25 | Ω> 256: u8 |
| 26 | error: source: column 1: literal 256 does not fit in u8 |
| 27 | Ω> ((((((((((((((((((((((((((((((((((((((((7: u64)))))))))))))))))))))))))))))))))))))))) |
| 28 | error: source: column 34: expression is nested too deeply for V0 (limit 32) |
| 29 | Ω> x + y |
| 30 | 18 |
| 31 | Ω> run _ 1 2 3 4 5 6 |
| 32 | error: run: too many arguments (max 4) |
| 33 | Ω> compare x |
| 34 | error: compare: expected 2 arguments, got 1 |
| 35 | Ω> let b: bool = true |
| 36 | 1 |
| 37 | Ω> realize b |
| 38 | error: realize: not an APPLY or OPERATION object; only pure binary u64 applies realize in V1 |
| 39 | Ω> run sha256:037a444b0f120fd4bbabd0c16ae143599b231d2469827fccbf9bc79c57bab822 |
| 40 | error: run: sha256:037a444b0f120fd4bbabd0c16ae143599b231d2469827fccbf9bc79c57bab822 is not an APPLY; only pure binary u64 applies run in V1 |
| 41 | Ω> authorize x |
| 42 | error: unknown: unknown command or invalid source line: 'authorize' |
| 43 | Ω> submit |
| 44 | error: source: column 1: unknown name 'submit' (define it first, e.g. let submit: u64 = 7) |
| 45 | Ω> execute _ |
| 46 | error: unknown: unknown command or invalid source line: 'execute' |
| 47 | Ω> mint cap |
| 48 | error: unknown: unknown command or invalid source line: 'mint' |
| 49 | Ω> grant x |
| 50 | error: unknown: unknown command or invalid source line: 'grant' |
| 51 | Ω> effects x |
| 52 | error: effects: 'x' is not an EFFECT object |
| 53 | Ω> 1 + 2 |
| 54 | error: source: column 3: ambiguous width: no operand has a type; write e.g. `(1: u64) + 2` |
| 55 | Ω> (1: u32) + (1: u64) |
| 56 | error: source: column 14: this annotation is u64 but u32 is required here (V0 never converts between types) |
| 57 | Ω> x == y |
| 58 | error: 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 |
| 60 | 42 |