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 / tests / test_chip_run_transc_manifest.sh

261 lines · 17958 bytes Raw Blame History
1#!/bin/bash
2# SPDX-License-Identifier: Apache-2.0
3# Copyright 2026 Drake Stapleton (AIEN / aien-dev)
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17# Host-only check of tools/manifests/numeric_transc.chiprun and its wrapper
18# tools/run_numeric_transc_gate.sh. No GPU, no chip sources, no real build: a fake omega and
19# fake physics (git repos in a temp dir), a tiny fake chip binary and fake host tier, run through
20# the real module via the CHIPRUN_SELFTEST seam (same method as tests/test_chip_run.sh).
21# tests/test_chip_run_transc_manifest.sh
22# Checks: (1) receipt keys and key order equal the old script's (pinned below; cross-checked with
23# origin/main:tools/run_numeric_transc_gate.sh while main still has the old script); the sorted
24# difference must be empty or listed in tests/chip_run_transc_receipt_allowlist.txt, and no stale
25# allowlist entry may remain; (2) gcc source list equals the old script's; (3) refusal line and
26# exit code for an unknown op and for a missing physics checkout; (4) verdicts, console lines,
27# exit codes, receipt values, quiet flag, host tier refusal, fuser refusal.
28# Each check is also run against a mutated manifest and must fail there.
29set -u
30HERE=$(cd -P "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
31MAN=$HERE/tools/manifests/numeric_transc.chiprun
32ALLOW=$HERE/tests/chip_run_transc_receipt_allowlist.txt
33T=$(mktemp -d); trap 'rm -rf "$T"' EXIT
34FAILS=0
35ok() { echo "PASS $1"; }
36bad() { echo "FAIL $1"; FAILS=$((FAILS + 1)); }
37FAKE_PHYS=/nonexistent-physics-for-test
38
39# Pinned from the old script (origin/main before this change): receipt keys in order, gcc sources in order.
40OLD_KEYS="gate row reference omega_commit omega_tree_clean_before omega_tree_clean_after omega_commit_unchanged_after physics_commit physics_lock_pin physics_tree_clean_before physics_tree_clean_after physics_commit_unchanged_after binary_sha256 chip_log_sha256 kernels nvdisasm_check host_tier ops_requested ops chip_exit_status started_utc finished_utc verdict"
41OLD_SRCS="tests/test_omega_numeric_transc_gb10.c src/omega_numeric_divsqrt_gb10.c src/omega_numeric_transc.c src/omega_numeric.c src/omega_numeric_provenance.c src/omega_blackwell_encoder.c src/omega_blackwell_codegen.c src/omega_blackwell_matmul.c src/omega_blackwell_qmd.c src/omega_om_units.c $FAKE_PHYS/nvrm/nvrm.c $FAKE_PHYS/m16/m16_native.c"
42
43# Cross-check of the pins against the old script, only while origin/main still has it.
44OLDSH=$(git -C "$HERE" show origin/main:tools/run_numeric_transc_gate.sh 2>/dev/null)
45if printf '%s\n' "$OLDSH" | grep -q 'flock -x 9'; then
46 printf '%s\n' "$OLDSH" | sed -n '/BODY=\$(jq -n/,/verdict: \$verdict }/p' | sed -E 's/\{op:[^}]*\}//g; s/"[^"]*"//g' | grep -oE '[a-z_0-9]+:' | tr -d ':' | tr '\n' ' ' | sed 's/ $//' > "$T/oldkeys"
47 [ "$(cat "$T/oldkeys")" = "$OLD_KEYS" ] && ok "0 pinned key list equals the old script's" || bad "0 pinned key list differs from the old script: $(cat "$T/oldkeys")"
48 printf '%s\n' "$OLDSH" | sed -n '/-o "\$BIN"/,/m16_native\.c/p' | grep -oE '(tests|src)/[A-Za-z0-9_]+\.c|\$PHYSICS/[a-z0-9/_]+\.c' | sed "s#\\\$PHYSICS#$FAKE_PHYS#" | tr '\n' ' ' | sed 's/ $//' > "$T/oldsrcs"
49 [ "$(cat "$T/oldsrcs")" = "$OLD_SRCS" ] && ok "0 pinned source list equals the old script's" || bad "0 pinned source list differs from the old script: $(cat "$T/oldsrcs")"
50else
51 echo "NOTE 0 origin/main no longer has the old script; the pinned lists are the reference"
52fi
53
54# ---------- fake world ----------
55cat > "$T/chip.c" <<'EOC'
56#include <stdio.h>
57#include <stdlib.h>
58#include <string.h>
59int main(int argc, char **argv) {
60 const char *m = getenv("FAKE_MODE"); if (!m) m = "pass";
61 const char *fl = getenv("FAKE_FLAG");
62 printf("noise line before results\n");
63 if (fl) { FILE *f = fopen(fl, "r"); char b[512] = ""; if (f) { if (!fgets(b, sizeof b, f)) b[0] = 0; fclose(f); } b[strcspn(b, "\n")] = 0; printf("noise flag=%s\n", b); }
64 const char *v = !strcmp(m, "fail") ? "FAIL" : (!strcmp(m, "notrun") || !strcmp(m, "notrun0")) ? "NOT_RUN" : "PASS";
65 for (int i = 1; i < argc; i++) {
66 if (!strcmp(argv[i], "--chip")) continue;
67 /* digest: a hex word that starts with a digit, so a loose number test in the manifest would break it */
68 printf("RESULT chip %s checked=%s exhaustive=%s mismatches=%s unwritten=0 verdict=%s digest=%s\n", argv[i],
69 strcmp(v, "NOT_RUN") ? "4294967296" : "0", strcmp(v, "NOT_RUN") ? "true" : "false", strcmp(v, "FAIL") ? "0" : "7", v,
70 strcmp(v, "NOT_RUN") ? "227cb65782077d82" : "none");
71 }
72 if (strcmp(m, "silent")) printf("VERDICT %s\n", v);
73 return (strcmp(m, "pass") && strcmp(m, "silent") && strcmp(m, "notrun0")) ? 1 : 0;
74}
75EOC
76mkdir -p "$T/bin" "$T/tmp" "$T/home"
77gcc -O0 -o "$T/bin/chip" "$T/chip.c" || { echo "FAIL setup: host gcc could not build the fake chip binary"; exit 1; }
78FLAG=$T/flag; LOCK=$T/gpu.lock
79g() { local d=$1; shift; git -C "$d" -c user.email=t@t -c user.name=t -c commit.gpgsign=false "$@"; }
80
81W=""; OM=""; PHYS=""; N=0
82build_world() { # MANIFEST
83 N=$((N + 1)); W=$T/w$N; OM=$W/omega; PHYS=$W/physics
84 mkdir -p "$PHYS/nvrm" "$OM/tools/manifests" "$W/tmp"
85 git init -q "$PHYS" && echo "/* fake */" > "$PHYS/nvrm/nvrm.c" && g "$PHYS" add -A && g "$PHYS" commit -q -m physics
86 git init -q "$OM"
87 cp "$HERE/tools/chip_run.sh" "$HERE/tools/run_numeric_transc_gate.sh" "$OM/tools/"
88 cp "$1" "$OM/tools/manifests/numeric_transc.chiprun"
89 git -C "$PHYS" rev-parse HEAD > "$OM/physics.lock"
90 echo "build/" > "$OM/.gitignore"
91 printf '#!/bin/sh\nif [ "$1" = --digest ]; then printf "EXP2 12 aaaa\\nLOG2 34 bbbb\\n"; exit ${FAKE_DIGEST_RC:-0}; fi\necho "[PASS] fake host check"; echo "FAKE_HOST_LAST"; exit ${FAKE_HOST_RC:-0}\n' > "$OM/tools/fakehost.sh"
92 printf '#!/bin/sh\necho "[PASS] fake nvd"\necho "disassembler: fake provenance line"\necho "nvdisasm noise line"\necho "VERDICT PASS"\nexit ${FAKE_NVD_RC:-0}\n' > "$OM/tools/divsqrt_nvdisasm_check.sh"
93 printf 'build/test_omega_numeric_transc_gb10_cpu:\n\tmkdir -p build && cp tools/fakehost.sh $@ && chmod +x $@\n' > "$OM/Makefile"
94 chmod +x "$OM/tools/"*.sh "$OM/tools/run_numeric_transc_gate.sh"
95 g "$OM" add -A && g "$OM" commit -q -m omega
96 rm -f "$FLAG"
97}
98OUT=$T/out.txt; RC=0
99# runw NAME [ENV=VALUE ...] -- wrapper args
100runw() {
101 local name=$1; RUNNAME=$name; shift; local extra=(); while [ "$1" != -- ]; do extra+=("$1"); shift; done; shift
102 rm -f "$FLAG"; g "$OM" clean -fdxq
103 ( cd "$T" && env -u PHYSICS PHYSICS_DIR="$PHYS" CHIPRUN_SELFTEST=1 CHIPRUN_PREBUILT_BIN="$T/bin/chip" CHIPRUN_QUIET_FLAG="$FLAG" \
104 CHIPRUN_GPU_LOCK="$LOCK" CHIPRUN_EST_LOAD_CMD=true TMPDIR="$W/tmp" TRANSC_GB10_EVIDENCE_DIR="$W/ev-$name" FAKE_FLAG="$FLAG" \
105 FAKE_MODE=pass "${extra[@]}" bash "$OM/tools/run_numeric_transc_gate.sh" "$@" ) > "$OUT" 2>&1
106 RC=$?
107 R=$(ls "$W"/ev-"$name"/*.json 2>/dev/null | head -1)
108}
109
110# ck_diag: after a failing check, show the first 15 lines of the last run's console, once per run name
111# (RUNNAME is set by runw and by the two inline runs). Lines start with " | " so they never
112# match the "^PASS" / "^FAIL" greps below. It does not change what counts as a pass.
113ck_diag() { [ "${DIAG_NAME:-}" = "${RUNNAME:-}" ] && return 0; DIAG_NAME=${RUNNAME:-}; head -n 15 "$OUT" 2>/dev/null | sed 's/^/ | /'; return 0; }
114
115# suite MANIFEST: every world-based check; prints "PASS id" / "FAIL id" lines.
116suite() {
117 local man=$1 id k; RUNNAME=""; DIAG_NAME=""
118 build_world "$man"
119 ck() { id=$1; shift; if "$@"; then echo "PASS $id"; else echo "FAIL $id"; ck_diag; fi; }
120 last_is() { [ "$(tail -n 1 "$OUT")" = "$1" ]; }
121 has() { grep -Eq -- "$1" "$OUT"; }
122 lacks() { ! grep -Eq -- "$1" "$OUT"; }
123 rj() { [ -n "${R:-}" ] && jq -e "$1" "$R" > /dev/null 2>&1; }
124
125 # happy path, default ops through the wrapper
126 runw happy -- ; HAPPY_R=$R
127 ck happy_exit test "$RC" = 0
128 ck happy_last_line last_is "VERDICT PASS"
129 ck happy_results_echoed test "$(grep -c '^RESULT chip ' "$OUT")" = 11
130 ck happy_noise_not_echoed lacks '^noise'
131 ck happy_receipt_line has '^RECEIPT /.*\.json$'
132 ck happy_no_chiprun_line lacks '^CHIP_RUN:'
133 ck happy_default_ops rj '.ops_requested == ["EXP2","LOG2","SIGMOID","TANH","SIN","COS","ERF","GELU","RSQRT","EXP","LOG"] and (.ops | map(.op)) == ["EXP2","LOG2","SIGMOID","TANH","SIN","COS","ERF","GELU","RSQRT","EXP","LOG"]'
134 ck happy_ops_typed rj '.ops[0] == {op:"EXP2",checked:4294967296,exhaustive:true,mismatches:0,unwritten:0,verdict:"PASS",digest:"227cb65782077d82"}'
135 ck happy_kernels rj '.kernels == [{op:"EXP2",instructions:12,sha256:"aaaa"},{op:"LOG2",instructions:34,sha256:"bbbb"}]'
136 ck happy_nvd rj '.nvdisasm_check == "disassembler: fake provenance line\nVERDICT PASS"'
137 ck happy_host_tier rj '.host_tier == "FAKE_HOST_LAST"'
138 ck happy_gate_fields rj '.gate == "E1-TRANSC-GB10" and .verdict == "PASS" and .chip_exit_status == 0 and (.row | startswith("E1 gap table row 10")) and (.reference | startswith("omega_math_<op>"))'
139 ck happy_flag_dropped test ! -e "$FLAG"
140 ck happy_flag_owner grep -q 'flag=lane2 E1 transcendental GB10 chip run start=' "$W"/ev-happy/blobs/*.log
141 ck happy_mode_0444 test "$(stat -c %a "$R" 2>/dev/null)" = 444
142 # (1) receipt keys, ordered, equal the old script's
143 jq -r 'keys_unsorted | join(" ")' "$HAPPY_R" > "$W/newkeys" 2>/dev/null
144 ck keys_ordered test "$(cat "$W/newkeys")" = "$OLD_KEYS"
145 # (1b) sorted difference against the allowlist, both directions
146 tr ' ' '\n' <<< "$OLD_KEYS" | sort > "$W/ko"; tr ' ' '\n' < "$W/newkeys" | sed '/^$/d' | sort > "$W/kn"
147 { comm -13 "$W/ko" "$W/kn" | sed 's/^/+/'; comm -23 "$W/ko" "$W/kn" | sed 's/^/-/'; } | sort > "$W/diff"
148 grep -E '^[+-][a-z_0-9]+ ' "$ALLOW" | cut -d' ' -f1 | sort > "$W/allowed"
149 ck keys_allowlist cmp -s "$W/diff" "$W/allowed"
150
151 # other verdicts: exit code, console, receipt verdict
152 runw notrun FAKE_MODE=notrun -- EXP2
153 ck notrun_exit test "$RC" = 1
154 ck notrun_last_line last_is "VERDICT NOT_RUN"
155 ck notrun_receipt rj '.verdict == "NOT_RUN" and .ops[0].exhaustive == false and .ops_requested == ["EXP2"]'
156 runw fail FAKE_MODE=fail -- LOG2 TANH
157 ck fail_exit test "$RC" = 1
158 ck fail_last_line last_is "VERDICT FAIL"
159 ck fail_receipt rj '.verdict == "FAIL" and .ops[0].mismatches == 7 and .ops_requested == ["LOG2","TANH"]'
160 runw silent FAKE_MODE=silent -- EXP2
161 ck silent_exit test "$RC" = 1
162 ck silent_last_line last_is "VERDICT NOT_RUN"
163 ck silent_receipt rj '.verdict == "NOT_RUN" and .chip_exit_status == 0'
164 runw notrun0 FAKE_MODE=notrun0 -- EXP2
165 ck notrun0_exit test "$RC" = 1
166 ck notrun0_last_line last_is "VERDICT NOT_RUN"
167 ck notrun0_receipt rj '.verdict == "NOT_RUN" and .chip_exit_status == 0'
168 runw passrc FAKE_MODE=passrc -- EXP2
169 ck passrc_exit test "$RC" = 1
170 ck passrc_last_line last_is "VERDICT FAIL"
171 ck passrc_receipt rj '.verdict == "FAIL" and .chip_exit_status == 1'
172
173 # (3) refusals: exit 1 and VERDICT NOT_RUN
174 runw badop -- EXP2 NOPE
175 ck badop_refusal test "$RC" = 1 -a "$(cat "$OUT")" = "$(printf 'REFUSED: unknown op NOPE\nVERDICT NOT_RUN')"
176 ck badop_nothing_written test -z "$(ls "$W"/ev-badop 2>/dev/null)" -a ! -e "$FLAG"
177 runw nophys PHYSICS_DIR="$T/nonexistent" -- EXP2
178 ck nophys_refusal test "$RC" = 1
179 ck nophys_lines test "$(sed -n 1p "$OUT")" = "REFUSED: no physics checkout at $T/nonexistent" -a "$(tail -n 1 "$OUT")" = "VERDICT NOT_RUN"
180 runw defphys HOME="$T/home" PHYSICS_DIR= -- EXP2
181 ck default_physics_dir has 'REFUSED: no physics checkout at .*/home/workspace/hive-worktrees/physics-gate14-e95e3ed$'
182 runw hostfail FAKE_HOST_RC=1 -- EXP2
183 ck hostfail_refusal test "$RC" = 1 -a "$(tail -n 1 "$OUT")" = "VERDICT NOT_RUN"
184 ck hostfail_text has '^REFUSED: host tier failed'
185 ck hostfail_no_chip lacks '^== chip run'
186 ck hostfail_no_flag test ! -e "$FLAG"
187 runw nvdfail FAKE_NVD_RC=1 -- EXP2
188 ck nvdfail_refusal test "$RC" = 1 -a "$(tail -n 1 "$OUT")" = "VERDICT NOT_RUN"
189 ck nvdfail_no_chip lacks '^== chip run'
190 ck nvdfail_text has '^host tier \(0\) or nvdisasm check \(1\) failed$'
191 runw digfail FAKE_DIGEST_RC=1 -- EXP2
192 ck digfail_refusal test "$RC" = 1 -a "$(tail -n 1 "$OUT")" = "VERDICT NOT_RUN"
193 ck digfail_no_chip lacks '^== chip run'
194 ck digfail_text has '^kernel digest failed$'
195 # fuser: any open handle on the lock file refuses, even without flock
196 exec 8> "$LOCK"; runw fuser -- EXP2; exec 8>&-
197 ck fuser_refusal test "$RC" = 1 -a "$(tail -n 1 "$OUT")" = "VERDICT NOT_RUN"
198 ck fuser_text has "^REFUSED: $LOCK is held\$"
199 ck fuser_no_host_tier lacks '^== host tier'
200 # dirty omega
201 echo x > "$OM/junk"; rm -f "$FLAG"; RUNNAME=dirty
202 ( cd "$T" && env -u PHYSICS PHYSICS_DIR="$PHYS" CHIPRUN_SELFTEST=1 CHIPRUN_PREBUILT_BIN="$T/bin/chip" CHIPRUN_QUIET_FLAG="$FLAG" CHIPRUN_GPU_LOCK="$LOCK" \
203 CHIPRUN_EST_LOAD_CMD=true TMPDIR="$W/tmp" TRANSC_GB10_EVIDENCE_DIR="$W/ev-dirty" bash "$OM/tools/run_numeric_transc_gate.sh" EXP2 ) > "$OUT" 2>&1; RC=$?
204 rm -f "$OM/junk"
205 ck dirty_refusal test "$RC" = 1 -a "$(sed -n 1p "$OUT")" = "REFUSED: omega tree $OM is dirty" -a "$(tail -n 1 "$OUT")" = "VERDICT NOT_RUN"
206 # quiet flag up
207 echo other > "$FLAG"; RUNNAME=flagup
208 ( cd "$T" && env -u PHYSICS PHYSICS_DIR="$PHYS" CHIPRUN_SELFTEST=1 CHIPRUN_PREBUILT_BIN="$T/bin/chip" CHIPRUN_QUIET_FLAG="$FLAG" CHIPRUN_GPU_LOCK="$LOCK" \
209 CHIPRUN_EST_LOAD_CMD=true TMPDIR="$W/tmp" TRANSC_GB10_EVIDENCE_DIR="$W/ev-flagup" bash "$OM/tools/run_numeric_transc_gate.sh" EXP2 ) > "$OUT" 2>&1; RC=$?
210 ck flagup_refusal test "$RC" = 1 -a "$(sed -n 1p "$OUT")" = "REFUSED: quiet flag is up: other" -a "$(tail -n 1 "$OUT")" = "VERDICT NOT_RUN"
211 ck flagup_left_alone test "$(cat "$FLAG")" = other
212 rm -f "$FLAG"
213}
214
215# (2) gcc source list
216load_list() { ( PHYSICS=$FAKE_PHYS; . "$1" 2>/dev/null || exit 1; read -ra A <<< "$TEST_SOURCE $SOURCES $EXTRA_BUILD_SOURCES"; echo "${A[*]}" ); }
217
218suite "$MAN" > "$T/suite.out"
219cat "$T/suite.out"; grep -c '^FAIL' "$T/suite.out" > "$T/nfail"; FAILS=$((FAILS + $(cat "$T/nfail")))
220[ "$(grep -c '^PASS' "$T/suite.out")" -ge 45 ] || bad "suite ran fewer than 45 checks"
221[ "$(load_list "$MAN")" = "$OLD_SRCS" ] && ok "2 source list identical to old script" || bad "2 source list: $(load_list "$MAN")"
222
223# every file the manifest names exists in the real tree
224( PHYSICS=$FAKE_PHYS; . "$MAN"; for s in $TEST_SOURCE $SOURCES; do [ -f "$HERE/$s" ] || { echo "missing $s"; exit 1; }; done ) && ok "2b sources exist" || bad "2b a named source is missing"
225
226# ---------- mutants: each manifest or wrapper change must make a named check fail ----------
227mutant() { # NAME SED-EXPR EXPECTED-FAILING-ID
228 local name=$1 expr=$2 want=$3
229 sed "$expr" "$MAN" > "$T/m_$name"
230 cmp -s "$T/m_$name" "$MAN" && { bad "mutant $name changed nothing"; return; }
231 suite "$T/m_$name" > "$T/m_$name.out" 2>&1
232 grep -q "^FAIL $want\$" "$T/m_$name.out" && ok "mutant $name fails $want" || bad "mutant $name did not fail $want"
233}
234mutant nokernels 's/^ kernels:/ kernels_x:/' keys_ordered
235mutant renamekey 's/^ nvdisasm_check: / zz_nvdisasm_check: /' keys_ordered
236mutant extrakey 's/^ gate: \$r.gate,/ gate: $r.gate, owner: $r.owner,/' keys_allowlist
237mutant dropkey '/^ row: /d' keys_allowlist
238mutant verdictword 's/elif \$cw == "" then "NOT_RUN"/elif $cw == "" then "FAIL"/' silent_receipt
239mutant failword 's/elif \$cw == "PASS" then "FAIL"/elif $cw == "PASS" then "PASS"/' passrc_receipt
240mutant refuseexit 's/^REFUSE_EXIT=1/REFUSE_EXIT=2/' nophys_refusal
241mutant refuseline "s/^REFUSE_VERDICT_LINE=.*/REFUSE_VERDICT_LINE='CHIP_RUN: NOT_RUN'/" nophys_lines
242mutant style 's/^FINAL_LINE_STYLE=verdict/FINAL_LINE_STYLE=chip_run/' happy_last_line
243mutant echore '/^ECHO_RE=/d' happy_noise_not_echoed
244mutant nofuser 's/^GPU_LOCK_MODE=fuser/GPU_LOCK_MODE=flock/' fuser_refusal
245mutant noquiet 's/^RAISE_QUIET=1/RAISE_QUIET=0/' happy_flag_owner
246mutant owner 's/^OWNER="lane2 E1 transcendental GB10 chip run"/OWNER="other owner"/' happy_flag_owner
247mutant gate 's/^GATE=E1-TRANSC-GB10/GATE=E1-TRANSC/' happy_gate_fields
248mutant nohost "/^HOST_TIER_CMD=/,/^'\$/c\\HOST_TIER_CMD=true" hostfail_refusal
249mutant dirtyok 's/^REFUSE_DIRTY_OMEGA=1/REFUSE_DIRTY_OMEGA=0/' dirty_refusal
250mutant nonvd 's#^tools/divsqrt_nvdisasm_check.sh > #true > #' nvdfail_refusal
251mutant nokdig 's#^build/test_omega_numeric_transc_gb10_cpu --digest > .*#true#' happy_kernels
252mutant nokdigcheck 's#^build/test_omega_numeric_transc_gb10_cpu --digest > \(.*\) || { echo "kernel digest failed"; exit 1; }$#build/test_omega_numeric_transc_gb10_cpu --digest > \1#' digfail_refusal
253mutant pass_loose "s/^PASS_LINE=.*/PASS_LINE='^VERDICT'/" notrun0_receipt
254mutant loosenum 's/test("^\[0-9\]+\$")/test("^[0-9]")/' happy_ops_typed
255sed 's#^SOURCES="src/omega_numeric_divsqrt_gb10.c #SOURCES="#' "$MAN" > "$T/m_dropsrc"
256sed 's#src/omega_om_units.c#src/sha256_nope.c#' "$MAN" > "$T/m_badfile"
257for m in m_dropsrc m_badfile; do [ "$(load_list "$T/$m")" = "$OLD_SRCS" ] && bad "mutant $m passed check 2" || ok "mutant $m fails check 2"; done
258( PHYSICS=$FAKE_PHYS; . "$T/m_badfile"; for s in $TEST_SOURCE $SOURCES; do [ -f "$HERE/$s" ] || exit 1; done ) && bad "mutant badfile passed 2b" || ok "mutant badfile fails 2b"
259
260[ "$FAILS" = 0 ] && { echo "CHIP_RUN_TRANSC_MANIFEST: PASS"; exit 0; }
261echo "CHIP_RUN_TRANSC_MANIFEST: FAIL ($FAILS)"; exit 1