From the 101 lk/man/pth code-gen sources: 63 tasks (C11 36, C++17 27, 11 canonical families), 38 skipped for scope or duplication. Each task has at least one independent contract-edge defect, boundary types rotate, and public docs state trap clauses as plain contract prose. Claude reviewed 63/63 USABLE against current digests. Difficulty is unmeasured. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
1.0 KiB
JSON
15 lines
1.0 KiB
JSON
{
|
|
"candidates": [
|
|
"model.h",
|
|
"ring.c",
|
|
"irq.c",
|
|
"session.c",
|
|
"parse.h",
|
|
"parse.c"
|
|
],
|
|
"files": {
|
|
"demo.c": "#include \"parse.h\"\n#include <stdio.h>\n#include <string.h>\n\nint main(void)\n{\n Model model;\n char line[256];\n unsigned step = 0;\n model_initialize(&model, 16, 0);\n while (fgets(line, sizeof(line), stdin) != NULL) {\n Command command;\n Reply reply;\n Snapshot snapshot;\n command_parse(line, &command);\n model_apply(&model, &command, &reply);\n model_snapshot(&model, &snapshot);\n reply_print(stdout, ++step, &reply, &snapshot);\n }\n return ferror(stdin) || ferror(stdout) ? 1 : 0;\n}\n",
|
|
"Makefile": "CC = gcc\nCFLAGS = -std=c11 -O2 -Wall -Wextra -pedantic\nSOURCES = demo.c parse.c session.c irq.c ring.c\n\n.PHONY: all smoke clean\nall: event-demo\nevent-demo: $(SOURCES) model.h parse.h\n\t$(CC) $(CFLAGS) $(SOURCES) -o $@\nsmoke: event-demo\n\t./event-demo < smoke.txt\nclean:\n\trm -f event-demo\n"
|
|
}
|
|
}
|