Legacy Mainframe Source (COBOL-85 / 74)
AST Nodes: 12
Control Flow & Memory Structure (Cytoscape.js)
Multi-Agent Refactoring Engine
Target: TypeScript (Zod)
Live Mainframe Simulation Injector
Mutate parameters & re-verify parity
Dual Execution Parity Engine
PASS: 0 DELTA
| Output Variable | COBOL PIC Output | TypeScript Output | Delta / Result |
|---|---|---|---|
| WS-OVERDRAFT-FEE | $35.00 | $35.00 | 0.00 (EXACT) |
| WS-INTEREST-DUE | $0.72 | $0.72 | 0.00 (ROUNDED) |
COBOL PIC Memory Layout (EBCDIC/Packed Hex)
01 WS-ACCOUNT-RECORD (30 Bytes)
Agent 2: Declarative Business Rules Extracted
Rule Count: 2
- Negative balance triggers tier-based overdraft fee (Tier 1=$15.00, Tier 2=$35.00, Default=$50.00)
- Daily overdraft interest calculated at 0.0493% per diem on absolute negative balance with standard rounding
Agent 3: Synthesized Modern TypeScript Code
Deterministic Zod Schema + Pure Function