100 tasks from the HWE arm-linux code-gen pool (outside the lk/man/pth range given to batch 22), each with at least one independent contract-edge defect and plain public docs. Claude reviewed 100/100 USABLE against current digests; no ID or source overlap with main or batch 22. Difficulty is unmeasured. progress.md records the wrap-up: all Codex sessions and Qwen schedulers stopped for the user's rollout, Qwen results so far (57 HARD of 373), and what is left on each batch branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
38 lines
1.3 KiB
Python
38 lines
1.3 KiB
Python
import struct
|
|
import sys
|
|
|
|
data = memoryview(sys.stdin.buffer.read())
|
|
cursor = 4
|
|
|
|
def integer(width=4):
|
|
global cursor
|
|
value = int.from_bytes(data[cursor:cursor + width], 'little')
|
|
cursor += width
|
|
return value
|
|
|
|
def blob():
|
|
global cursor
|
|
length = integer()
|
|
value = bytes(data[cursor:cursor + length])
|
|
cursor += length
|
|
return value
|
|
|
|
count = integer()
|
|
for _ in range(count):
|
|
opcode, code = integer(1), integer()
|
|
if opcode == 6 and code == 0:
|
|
ident, direction, mode, requested, transferred, state = [integer() for _ in range(6)]
|
|
waits, budget, content = integer(8), integer(), blob()
|
|
label = ['Pending', 'Complete', 'Again', 'Interrupted'][state]
|
|
print('result', ident, label, str(transferred) + '/' + str(requested),
|
|
'direction', direction, 'mode', mode, 'waits', waits,
|
|
'budget', budget, 'bytes', repr(content))
|
|
elif opcode == 8:
|
|
capacity, used, readers, writers, retained = [integer() for _ in range(5)]
|
|
reads, writes, ticks = [integer(8) for _ in range(3)]
|
|
print('snapshot', 'capacity', capacity, 'used', used, 'readers', readers,
|
|
'writers', writers, 'retained', retained, 'cursors', reads, writes,
|
|
'ticks', ticks, 'bytes', repr(blob()))
|
|
else:
|
|
print('call', opcode, 'code', code)
|