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 / tools / physics0 / pd1-convert / Makefile
| 1 | # PD-1 evidence conversion tool (D7). Pure seeded OM-2, host only, no Python, no GPU. |
| 2 | OMC ?= ../../../seed/out/omc |
| 3 | OUT ?= $(CURDIR)/out |
| 4 | all: pd1_convert |
| 5 | pd1_convert: pd1_convert.om |
| 6 | $(OMC) < $< > $@ && chmod +x $@ |
| 7 | # run: extract -> convert -> verify -> leak check. Never overwrites an existing stream. |
| 8 | run: pd1_convert |
| 9 | mkdir -p $(OUT) |
| 10 | sh ./extract.sh > $(OUT)/pd1-input.tsv |
| 11 | ./pd1_convert $(OUT)/pd1-records.bin < $(OUT)/pd1-input.tsv > $(OUT)/pd1-projection.tsv 2> $(OUT)/pd1-convert.log |
| 12 | ./pd1_convert --verify $(OUT)/pd1-records.bin |
| 13 | sh ./leakcheck.sh $(OUT)/pd1-projection.tsv |
| 14 | @awk -F'\t' 'NR>1{n[$$2]++; if($$9!=-1)lat[$$2]++; if($$10==1)f[$$2]++} END{for(s in n) printf "src=%s rows=%d with_latency=%d fail=%d\n", s, n[s], lat[s], f[s]}' $(OUT)/pd1-projection.tsv | sort |
| 15 | clean: |
| 16 | rm -f pd1_convert |
| 17 | .PHONY: all run clean |