One user-space repair task per eligible HWE debug-diag / compile-deploy base ID: 320 admitted (C 218, C++ 97, build scripts 5), 1 skipped by the content filter. Each ships a public spec with a check-to-basis table, at least two defects with single-fix fixtures, a symptom-masking fixture and an alternative correct implementation. Claude re-checked all 320: structure, the HWE quality items and trace6 Docker calibration receipts against current digests (320/320 USABLE). Difficulty is unmeasured. Known follow-up: 212 tasks use 120 ad-hoc family names; the next batch maps them to the canonical list. The batch's 1,256-line progress log stays in its factory report and the 36-local branch batch15-hwe. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7 lines
1.5 KiB
Markdown
7 lines
1.5 KiB
Markdown
# Offline integer instruction language
|
|
|
|
L1. A word is an unsigned 16-bit integer. The high byte is opcode and the low byte is operand. A valid whole program has 1..12 words; exactly its last word is HALT (opcode 0, operand 0), and no earlier word is HALT. Other opcode/operand pairs must satisfy the table below. The program is a bounded straight-line sequence, with no jumps, memory access or external calls.
|
|
L2. Arithmetic uses a uint32 accumulator initialized to the command's input. All arithmetic wraps modulo 2^32. Signed operand s is b when b<128, otherwise b-256. One instruction is retired for every inspected word, including HALT. A valid run stops after its final HALT.
|
|
L3. Opcode 1 ADD accepts any byte b and computes accumulator+s. Opcode 2 XOR accepts any byte and computes accumulator XOR b. Opcode 3 MUL accepts any byte and computes accumulator*b. Opcode 4 ROT accepts b=0..31 and rotates the uint32 accumulator left b bits (b=0 leaves it unchanged). Opcode 5 SET accepts any byte and sets accumulator to signed s reduced modulo 2^32. Opcode 6 AND accepts any byte and computes accumulator AND b. Opcodes 7..255 are invalid; HALT with nonzero operand is invalid.
|
|
L4. The interpreter accepts only a valid whole program, but reports raw faults deterministically: scan in order, rejecting any invalid opcode/operand, early HALT or a non-HALT last word at the first such word. Return -5, value=0 and retired including that inspected word. Active length is always 1..12. This reports a stale or incomplete execution view without invoking undefined behavior.
|