feat: add COBOL statement benchmark plan and 34 P0 sample programs

- docs/cobol-statement-benchmark-plan.md — full coverage matrix and gap analysis
- 34 P0 COBOL samples: arithmetic(9), move(5), file(6), control(6),
  inspect(3), search(2), perform(3)
- test-data/validate_statements.py — automatic validation script
- Validation: 34/34 samples pass preprocess + extract_structure
This commit is contained in:
NB-076
2026-06-21 12:02:25 +08:00
parent a6c454692a
commit 8c1f9114f6
36 changed files with 1626 additions and 0 deletions
@@ -0,0 +1,21 @@
* ==== TYPE: ST-ADD-GIVING ====
* FEATURE: ADD ... GIVING (single and multi-source)
* STATEMENT: ADD
* BRANCHES: 2, DECISIONS: 1
IDENTIFICATION DIVISION.
PROGRAM-ID. ADDGIV.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 WS-A PIC 9(5) VALUE 30.
01 WS-B PIC 9(5) VALUE 20.
01 WS-SUM PIC 9(5) VALUE 0.
01 WS-TOTAL PIC 9(5) VALUE 0.
PROCEDURE DIVISION.
MAIN.
ADD 10 TO WS-A GIVING WS-SUM.
ADD WS-A WS-B GIVING WS-TOTAL.
IF WS-TOTAL = 60
DISPLAY 'OK: 30+10+20=60'
ELSE
DISPLAY 'ERROR: WRONG SUM'.
STOP RUN.