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:
34
tools/smokes/curated_phi_invariants.sh
Normal file
34
tools/smokes/curated_phi_invariants.sh
Normal 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"
|
||||
|
||||
Reference in New Issue
Block a user