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 / seed / omega-from-seed.sh

35 lines · 1442 bytes Raw Blame History
1#!/bin/sh
2# omega-from-seed.sh -- compatibility entry point for the pure seeded-Omega birth coordinator.
3# All birth logic (seed0 -> hex1 -> asm2 -> om4 -> omc 3-stage fixpoint -> diaggen -> 8-case
4# size-record verification -> 4 names-pass probes) lives in pure seeded Omega: seed/build/birth.om.
5# Zero Python on the delivery path. Always cold-bootstraps stage1 from seed0.hex so no committed
6# unverified seed/out/omc binary is ever trusted on the bootstrap path.
7set -eu
8if [ "$(uname -s)-$(uname -m)" != "Linux-aarch64" ]; then
9 echo "NOT_RUN: omega-from-seed requires Linux aarch64 (got $(uname -s)-$(uname -m))" >&2
10 exit 3
11fi
12R=$(CDPATH= cd -- "$(dirname "$0")/.." && pwd)
13cd "$R"
14
15B="build/seed/cold.$$"
16mkdir -p "$B"
17trap 'rm -rf "$B"' EXIT INT TERM
18
19# Cold-start bootstrap from seed0.hex: grow stage1, compile seed/build/birth.om, and run it.
20sh seed/rung0/load0.sh seed/rung0/seed0.hex "$B/seed0.bin"
21chmod 755 "$B/seed0.bin"
22"$B/seed0.bin" < seed/rung1/hex1.hex > "$B/hex1.bin"
23chmod 755 "$B/hex1.bin"
24"$B/hex1.bin" < seed/rung2/asm2.hex1 > "$B/asm2.bin"
25chmod 755 "$B/asm2.bin"
26cat seed/rung2/table.s2 seed/rung3/table3.s2 seed/rung4/table4.s2 seed/rung4/om4.s | "$B/asm2.bin" > "$B/om4.bin"
27chmod 755 "$B/om4.bin"
28"$B/om4.bin" < seed/omc/omc.om > "$B/stage1"
29chmod 755 "$B/stage1"
30cat seed/build/common.om seed/build/birth.om | "$B/stage1" > "$B/om-birth"
31chmod 755 "$B/om-birth"
32
33rc=0
34"$B/om-birth" "$@" || rc=$?
35exit "$rc"