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 / mk / turing_exp001_a.mk
| 1 | # EXP-001 lane A (calibration profile, candidate set, power simulation). |
| 2 | # Picked up by `-include mk/*.mk`. New files only; every variable is TXA_-prefixed |
| 3 | # and every target turing-exp001-a-* so no other mk/turing_exp001*.mk collides. |
| 4 | # |
| 5 | # make turing-exp001-a-build build the candidate tool and the power simulation |
| 6 | # make turing-exp001-a-candidates write the six TYM0 candidates (dev seeds 1-7) + print L(M), dev L(D|M) |
| 7 | # make turing-exp001-a-power run the power simulation (fit 1-6, score 7 per crumb) |
| 8 | # make turing-exp001-a-check profile TOML vs code constants + field list (pre-freeze mode) |
| 9 | # make test-turing-exp001-a build + check + B3/consts self-test (no dev data needed) |
| 10 | .PHONY: turing-exp001-a-build turing-exp001-a-candidates turing-exp001-a-power turing-exp001-a-check test-turing-exp001-a |
| 11 | # -Wno-pedantic: generated binding src/omega_om_units.c uses GNU range designators; see mk/estimation.mk. |
| 12 | TXA_CFLAGS = -std=c11 -Wall -Wextra -Werror -pedantic -O2 -D_POSIX_C_SOURCE=200809L -Isrc -Itools -Wno-pedantic |
| 13 | TXA_SRCS = src/turing/ty_math.c src/turing/ty_ctr1.c src/turing/ty_model.c src/turing/ty_record.c \ |
| 14 | src/turing/ty_profile.c src/omega_canonical.c src/omega_om_units.c |
| 15 | TXA_HDRS = src/turing/ty_math.h src/turing/ty_ctr1.h src/turing/ty_model.h src/turing/ty_record.h tools/turing_cal_dev.h |
| 16 | TXA_DIR = $(OUT_DIR)/turing-exp001-a |
| 17 | TXA_CAND = $(TXA_DIR)/turing-cal-candidates |
| 18 | TXA_POWER = $(TXA_DIR)/power-simulation |
| 19 | TXA_MANIFEST = evidence/TURING_YIELD/trace_manifest_rep10_control.sha256 |
| 20 | TXA_DATA_ROOT ?= $(HOME)/aien-data/crumbline |
| 21 | TXA_CAND_OUT ?= $(TXA_DIR)/candidates |
| 22 | |
| 23 | $(TXA_CAND): tools/turing_cal_candidates.c $(TXA_SRCS) $(TXA_HDRS) |
| 24 | @mkdir -p $(TXA_DIR) |
| 25 | $(CC) $(TXA_CFLAGS) -o $@ tools/turing_cal_candidates.c $(TXA_SRCS) -lm |
| 26 | |
| 27 | $(TXA_POWER): calibration/scripts/power_simulation.c $(TXA_SRCS) $(TXA_HDRS) |
| 28 | @mkdir -p $(TXA_DIR) |
| 29 | $(CC) $(TXA_CFLAGS) -o $@ calibration/scripts/power_simulation.c $(TXA_SRCS) -lm |
| 30 | |
| 31 | turing-exp001-a-build: $(TXA_CAND) $(TXA_POWER) |
| 32 | |
| 33 | turing-exp001-a-candidates: $(TXA_CAND) |
| 34 | @mkdir -p $(TXA_CAND_OUT) |
| 35 | ./$(TXA_CAND) write $(TXA_MANIFEST) $(TXA_DATA_ROOT) evidence/TURING_YIELD $(TXA_CAND_OUT) |
| 36 | |
| 37 | turing-exp001-a-power: $(TXA_POWER) |
| 38 | ./$(TXA_POWER) $(TXA_MANIFEST) $(TXA_DATA_ROOT) |
| 39 | |
| 40 | turing-exp001-a-check: $(TXA_CAND) |
| 41 | TXA_CAND=./$(TXA_CAND) sh calibration/scripts/check_profile.sh |
| 42 | |
| 43 | test-turing-exp001-a: turing-exp001-a-build turing-exp001-a-check |
| 44 | @echo "test-turing-exp001-a: tools build clean, profile TOML agrees with code constants" |