Skip to content

HFP: High Level Assembler capture kit for the IEEE conversions and short mul/div (Part of #4271, #4050) - #6023

Merged
squid-protocol merged 2 commits into
mainfrom
churn/4271-hfp-asm-kit
Oct 22, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/4271-hfp-asm-kit

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

Part of #4271, #4050.

Checklist: partial [c:ff93cc35] -- needs a z/OS run of HFPCAP and HFPCAPA, then ingest as zos-run records, settling the ASSUMED rules the run disagrees with, and EPSMPMT's ** re-check (mortgage-mpmt out of KNOWN_UNPROVEN)

What

The COBOL capture kit skipped 28 table records by name (22 IEEE conversions: COBOL has no IEEE converter; 6 short multiply/divide: COBOL evaluates them in long). A z/OS run of HFPCAP alone could never settle them. hfp_capture_kit.py emit now also writes HFPCAPA.asm / HFPCAPA.jcl: a High Level Assembler program (OPTABLE(UNI), two base registers) using THDER/THDR, TBEDR/TBDR (M3=4, nearest even, the model's rule) and MEER/DER. Same id|HEX lines; verify/ingest take --kit asm. Only a short ** stays unasked. Register C6 and its runbook updated.

Class

Capture-table records the COBOL kit cannot ask, so a z/OS run could never settle them.

Member Count Status Where
from_ieee / to_ieee (short, long) 22 handled here (HFPCAPA: THDER/THDR, TBEDR/TBDR) emit_asm, test_each_skipped_op_becomes_the_instruction_its_row_states
short mul / div 6 handled here (MEER / DER) same
short pow 0 records out of scope: IBM evaluates a short ** in long; no record asks it kit docstring
COBOL-askable records (50 publication, 22+10 assumption) 95 already asked by HFPCAP unchanged

test_the_assembler_kit_asks_exactly_the_records_the_cobol_kit_skips pins the partition (28, no overlap, none left over).

Sibling gaps

  • The z/OS run of HFPCAP and HFPCAPA (frontier; needed by EPSMPMT, BNK1TFN, BNK1CRA, BNK1UAC, BNK1CAC, BANKDATA, CRECUST). Why not here: capturing is out of scope; needs the owner or an external z/OS.
  • BNK1TFN non-exact float-to-fixed: IBM behaviour unsettled until the capture (burned: BNK1TFN).
  • Assembler text unassembled (no HLASM here): first z/OS assembly may need a syntax fix.

Proposed split of [c:ff93cc35] (remaining lines)

  1. model, table, census, COBOL kit, runbook (earlier slices)
  2. this PR: assembler kit for the 28 records COBOL cannot ask
  3. owner/external: run HFPCAP and HFPCAPA on z/OS (Captured mainframe outputs as the equivalence oracle (beside GnuCOBOL) #4050), verify the SYSOUT
  4. ingest as zos-run; fix det/hfp.py / Hfp.java where the model disagrees (never a record)
  5. settle the ASSUMED rules (power, store, DISPLAY mantissa, float-to-fixed incl. BNK1TFN)
  6. EPSMPMT ** re-check; mortgage-mpmt out of KNOWN_UNPROVEN; mortgage-csmrt/mortgage-cmort baseline entries (det_port: a CICS case's CALLed subprograms are not translated, so DBB EPSCSMRT cannot be cased (EPSMPMT stub; C6 holes) #4803); C6 reached:

Verification

  • pytest tests/cobol_mainframe -k "hfp or register or support_matrix": 315 passed; audit_check.py all clear; ruff format --check clean.
  • No golden bless (no parser/engine file touched). Not proven: the assembler text is NOT assembled by any test (no HLASM here); tests hold instruction choice, column limit and ingest of model-computed output. The first z/OS assembly may need a syntax fix, which changes no record.

Cross-repo

None.

Lessons for agents

  • The new --kit default keeps every existing askable/skipped caller on the COBOL meaning; the asm kit's skipped is "neither kit asks".

🤖 Generated with Claude Code

…ort mul/div (Part of #4271, #4050)

The COBOL kit skipped 28 table records (22 IEEE conversions, 6 short multiply/divide), so a z/OS run could never
settle them. `emit` now also writes HFPCAPA.asm/.jcl (THDER/THDR, TBEDR/TBDR, MEER, DER); `verify`/`ingest`
take `--kit asm`.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 22, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 22, 2026 15:17
@squid-protocol
squid-protocol enabled auto-merge (squash) October 22, 2026 15:18
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 22, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant