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 / sessions / e2e.expected

97 lines · 4406 bytes Raw Blame History
1Ω> let x: u64 = 7
27
3Ω> let y: u64 = 11
411
5Ω> x + y
618
7Ω> type _
8u64
9Ω> id _
10sha256:c794437c57e3aec88e7385c024e427fd9be18aa4cf91fd46778b9e5fd4a31fc7
11 canonical_len: 177
12 canonical_sha256: c794437c57e3aec88e7385c024e427fd9be18aa4cf91fd46778b9e5fd4a31fc7
13Ω> graph _
14OPERATION sha256:c794437c57e3aec88e7385c024e427fd9be18aa4cf91fd46778b9e5fd4a31fc7 apply ADD(fef7efa7112d,745f463215c5) : u64
15 OPERATION sha256:6ff7d47206c867ccadb5c2ea8839b59d49ca9e62c6f95070ad7cd3d8f09c73b1 op ADD WRAP arity=2 -> u64
16 TYPE sha256:037a444b0f120fd4bbabd0c16ae143599b231d2469827fccbf9bc79c57bab822 type u64
17 VALUE sha256:fef7efa7112d1d8da5f8573bad1e4f882497407474c8798143330089c93c90db value 7 : u64
18 VALUE sha256:745f463215c5d2c0a03509b2ce1f7c3f2f393c6cd00d3add00fe79c4720669c2 value 11 : u64
19<machine block: host-dependent, masked>
20Ω> realize _
21[pure-execution]
22realization
23 id sha256:ffe7656dc91cf25a4aacfc005ffb643fa79f3fd8ce55d11420fd4982e9d0ff76
24 subject sha256:c794437c57e3aec88e7385c024e427fd9be18aa4cf91fd46778b9e5fd4a31fc7
25 realized sha256:6ff7d47206c867ccadb5c2ea8839b59d49ca9e62c6f95070ad7cd3d8f09c73b1
26<host machine line: host-dependent, masked>
27 bound none
28 target aarch64-v8a profile=0x01
29 code 8 bytes, 2 instructions
30 8b010000 add x0, x0, x1
31 d65f03c0 ret
32 compatible yes
33 runnable yes
34 why profile 0x01 vs machine 0x01 match; realizer bound no machine; run allowed
35cost (four separate classes; never merged)
36 predicted cycles=2 insns=2 bytes=8 [static: code_len/4 = 2 instructions x 1 cycle; no machine model]
37<host machine line: host-dependent, masked>
38 measured ABSENT [absent: Visor V1 ingests no execution receipts]
39 qualified ABSENT [absent: no qualified gate result for this realization in V1]
40Ω> cost _
41[simulation]
42cost (four separate classes; never merged)
43 predicted cycles=2 insns=2 bytes=8 [static: code_len/4 = 2 instructions x 1 cycle; no machine model]
44<host machine line: host-dependent, masked>
45 measured ABSENT [absent: Visor V1 ingests no execution receipts]
46 qualified ABSENT [absent: no qualified gate result for this realization in V1]
47Ω> run _
48[pure-execution]
4918
50Ω> verify _
51[pure-execution]
52STRUCTURAL PASS V0 graph typing + DAG integrity (5 object(s))
53TYPE PASS OPERATION(apply) object validates
54INVARIANTS PASS V2 reference-evaluator algebra (commutativity, identity, wrap, range); not object-specific
55REALIZATION PASS V1 differential, OP_ADD with c=0 (17 check(s), incl. V0 realization id)
56AUTHORITY PASS NONE: no effect or capability ref reachable (5 object(s) walked)
57<host machine line: host-dependent, masked>
58VERDICT PASS
59Ω> evidence _
60evidence: 0 shown, 0 matched, 1 scanned, 0 unparsed
61no evidence
62Ω> effects
63[effect-request]
64no effect objects in session
65Ω> fn transform(x: u64) -> u64 requires true ensures result >= 1 { x * 2 + 1 }
66fn transform: u64 -> u64
67Ω> realize transform
68[pure-execution]
69realization
70 id sha256:87c6fbd6d54c90525d018c65138314eb404cba4efa8d66d42dab17441e609ba6
71 subject sha256:83bd39597742d3bb83e5140c662532c0a2ecb59e5f868e38be16276981644543
72 realized sha256:83bd39597742d3bb83e5140c662532c0a2ecb59e5f868e38be16276981644543
73<host machine line: host-dependent, masked>
74 bound none
75 target aarch64-v8a profile=0x01
76 code 20 bytes, 5 instructions
77 d2800041 movz x1, #0x2
78 9b017c00 mul x0, x0, x1
79 d2800021 movz x1, #0x1
80 8b010000 add x0, x0, x1
81 d65f03c0 ret
82 compatible yes
83 runnable yes
84 why profile 0x01 vs machine 0x01 match; realizer bound no machine; run allowed
85cost (four separate classes; never merged)
86 predicted cycles=5 insns=5 bytes=20 [static: code_len/4 = 5 instructions x 1 cycle; no machine model]
87<host machine line: host-dependent, masked>
88 measured ABSENT [absent: Visor V1 ingests no execution receipts]
89 qualified ABSENT [absent: no qualified gate result for this realization in V1]
90Ω> run _ 5
91[pure-execution]
9211
93Ω> bindings
94x object sha256:fef7efa7112d1d8da5f8573bad1e4f882497407474c8798143330089c93c90db
95y object sha256:745f463215c5d2c0a03509b2ce1f7c3f2f393c6cd00d3add00fe79c4720669c2
96transform program sha256:83bd39597742d3bb83e5140c662532c0a2ecb59e5f868e38be16276981644543
97_ realization sha256:87c6fbd6d54c90525d018c65138314eb404cba4efa8d66d42dab17441e609ba6