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
| 1 | # AIEN Prime Drag Race (bench/prime_race/): implementation-side protocol + conventional CPU baseline. |
| 2 | # Pure seeded OM-2 standalone module under bench/prime_race/. Picked up by `-include mk/*.mk`; |
| 3 | # not part of `all` or `test`. No C, no physics, no GPU, no libraries. |
| 4 | # |
| 5 | # prime-race-cpu builds bench/prime_race/build/cpu_base via seed/out/omc |
| 6 | # prime-race-host-test trial-division oracle test of cpu_base + protocol formatting/parsing |
| 7 | ifndef PRIME_RACE_MK |
| 8 | PRIME_RACE_MK := 1 |
| 9 | .PHONY: prime-race-cpu prime-race-host-test |
| 10 | PR_DIR = bench/prime_race |
| 11 | PR_BUILD = $(PR_DIR)/build |
| 12 | PR_OMC ?= seed/out/omc |
| 13 | PR_CORE_OM = $(PR_DIR)/prime_race_impl.om $(PR_DIR)/cpu_base.om |
| 14 | |
| 15 | $(PR_BUILD)/cpu_base: $(PR_CORE_OM) $(PR_DIR)/cpu_base_main.om $(PR_OMC) |
| 16 | @mkdir -p $(PR_BUILD) |
| 17 | cat $(PR_CORE_OM) $(PR_DIR)/cpu_base_main.om | $(PR_OMC) > $@.tmp.$$$$ && chmod +x $@.tmp.$$$$ && mv -f $@.tmp.$$$$ $@ |
| 18 | prime-race-cpu: $(PR_BUILD)/cpu_base |
| 19 | |
| 20 | $(PR_BUILD)/prime_race_host_test: $(PR_CORE_OM) $(PR_DIR)/tests/prime_race_host_test.om $(PR_OMC) |
| 21 | @mkdir -p $(PR_BUILD) |
| 22 | cat $(PR_CORE_OM) $(PR_DIR)/tests/prime_race_host_test.om | $(PR_OMC) > $@.tmp.$$$$ && chmod +x $@.tmp.$$$$ && mv -f $@.tmp.$$$$ $@ |
| 23 | prime-race-host-test: $(PR_BUILD)/prime_race_host_test |
| 24 | ./$(PR_BUILD)/prime_race_host_test |
| 25 | endif |