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 / mk / turing_qrecord.mk

28 lines · 1613 bytes Raw Blame History
1# TURING companion records for continuous-value evidence (qprofile, qworld,
2# qfreeze, qgain) and their sidecar manifest formats, in pure seeded OM-2:
3# src/turing/ty_qrecord.om (composed after src/turing/ty_core_lib.om, which
4# supplies SHA-256 and the OMG0 canonical builder), tests/turing/test_ty_qrecord.om,
5# docs/turing/TURING_QCONT_RECORDS_V0.md. Picked up by `-include mk/*.mk`; no
6# Makefile edit; redefines nothing that exists.
7#
8# test-turing-qrecord: builds the test with the seeded omc and runs it (pinned
9# record and sidecar KATs, refusals, bindings, write-once files and manifests).
10# The ASan/UBSan build of the C test is gone. OM-2 traps at run time an out-of-range array get or
11# put (3), signed overflow (1), div or rem by 0 (2), a shift amount outside 0..width-1 (7) and an
12# out-of-range conversion (5) (docs/one_layer/OMEGESE.md 9.3); unsigned arithmetic wraps as in C.
13# Sanitizer checks with no OM-2 counterpart (alignment, use after free, leaks) are not replaced.
14ifndef TURING_QRECORD_MK
15TURING_QRECORD_MK := 1
16.PHONY: test-turing-qrecord
17TYQR_OMC ?= seed/out/omc
18TYQR_OM_SRCS = src/turing/ty_core_lib.om src/turing/ty_qrecord.om
19TYQR_DIR = $(OUT_DIR)/tests-turing-qrecord
20
21$(TYQR_DIR)/test_ty_qrecord: tests/turing/test_ty_qrecord.om $(TYQR_OM_SRCS) $(TYQR_OMC)
22 @mkdir -p $(TYQR_DIR)
23 (printf 'om2\n'; sed '/^om2$$/d' $(TYQR_OM_SRCS) tests/turing/test_ty_qrecord.om) | $(TYQR_OMC) > $@ && chmod +x $@
24
25test-turing-qrecord: $(TYQR_DIR)/test_ty_qrecord
26 ./$(TYQR_DIR)/test_ty_qrecord
27 @echo "test-turing-qrecord: pure OM-2 record builders, verifiers, refusals and manifests pass"
28endif