docs: add MIR13 mode doc and set PHI-off as default; bridge lowering split (if/loop/try); llvmlite resolver stabilization; curated runner default PHI-off; refresh CURRENT_TASK.md

This commit is contained in:
Selfhosting Dev
2025-09-17 10:58:12 +09:00
parent 31f90012e0
commit d99b941218
131 changed files with 2584 additions and 2657 deletions

View File

@ -0,0 +1,34 @@
#!/usr/bin/env bash
set -euo pipefail
if [[ "${NYASH_CLI_VERBOSE:-0}" == "1" ]]; then
set -x
fi
ROOT_DIR=$(cd "$(dirname "$0")/../.." && pwd)
APPS=(
"apps/tests/shortcircuit_nested_selective_assign.nyash"
"apps/tests/loop_if_phi.nyash"
"apps/tests/ternary_nested.nyash"
)
echo "[phi] Running curated PHI invariants parity checks (PyVM vs llvmlite)" >&2
FAIL=0
for app in "${APPS[@]}"; do
echo "[phi] case: $app" >&2
if ! "$ROOT_DIR/tools/pyvm_vs_llvmlite.sh" "$ROOT_DIR/$app"; then
echo "[phi] ❌ parity failed: $app" >&2
FAIL=1
else
echo "[phi] ✅ parity OK: $app" >&2
fi
done
if [[ "$FAIL" -ne 0 ]]; then
echo "[phi] ❌ curated PHI invariants parity has failures" >&2
exit 1
fi
echo "[phi] ✅ all curated PHI invariants cases passed"