ocaml: phase 5.1 queens.ml baseline (15/15 pass)
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 24s

4-queens via recursive backtracking + List.fold_left. Returns 2 (the
two solutions of 4-queens). Per-program timeout in run.sh bumped to
240s — the tree-walking interpreter is slow on heavy recursion but
correct.

The substrate handles full backtracking + safe-check recursion +
list-driven candidate enumeration end-to-end.
This commit is contained in:
2026-05-08 19:04:04 +00:00
parent 50a219b688
commit 360a3ed51f
4 changed files with 43 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ for f in lib/ocaml/baseline/*.ml; do
(eval "(ocaml-run-program (file-read \"$f\"))")
EOF
output=$(timeout 120 "$SX_SERVER" < "$TMP" 2>/dev/null)
output=$(timeout 240 "$SX_SERVER" < "$TMP" 2>/dev/null)
rm -f "$TMP"
result=$(echo "$output" | awk '