Skip to content

det: ALL-literal relation conditions compile; refuse numeric FUNCTION DISPLAY by name (#4557) - #4567

Merged
squid-protocol merged 4 commits into
mainfrom
fix/4557-det-cmpall
Oct 6, 2026
Merged

squid-protocol merged 4 commits into
mainfrom
fix/4557-det-cmpall

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #4557

The det translator emitted Cobol.compareAll for IF X = ALL 'ab' (and Cobol.displayNumber for numeric FUNCTION DISPLAY), neither of which cobolrt declares, so the port did not compile.

  • Added Cobol.compareAll to the runtime and fixed the relation-condition emission in det/gen.py (with and without a collating sequence).
  • Numeric FUNCTION in DISPLAY is now refused by name (GnuCOBOL shows each numeric function in its own picture) instead of emitting uncompilable Java.
  • Tests: compile of an ALL-literal port, a guard that every Cobol.<method>( the generator writes exists in the runtime, and the numeric-FUNCTION refusal. Parser tests use importorskip("tree_sitter_language_pack").

Gates: ratchets 6/6 pass; test_det_programs 95 pass (EQUIVALENCE_E2E=1, JDK 17, docker); lint/audits/secrets/xray/gauntlet/golden pass. Full suite: 16 failures in test_the_loops_committed_ports_are_proven[*] (provenance edited_after now says "resurfaced" per #4343 but the test asserts "none"); files untouched by this PR, not caused by it.

🤖 Generated with Claude Code

https://claude.ai/code/session_017BVJCCUMdjLJq1TAM3V34V

@squid-protocol squid-protocol added bug Unintended behavior or logic failure in the engine legacy-modernization COBOL refractor, dead-code extraction, and JCL forging priority: high Core feature broken, but workarounds exist labels Oct 6, 2026
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol marked this pull request as ready for review October 6, 2026 13:08
@squid-protocol
squid-protocol merged commit f9aa990 into main Oct 6, 2026
37 of 38 checks passed
@squid-protocol
squid-protocol deleted the fix/4557-det-cmpall branch October 6, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Unintended behavior or logic failure in the engine legacy-modernization COBOL refractor, dead-code extraction, and JCL forging priority: high Core feature broken, but workarounds exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

det translator emits Cobol.compareAll (IF X = ALL 'ab'), which cobolrt lacks, so the port does not compile

1 participant