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>
44 lines
1.4 KiB
Plaintext
44 lines
1.4 KiB
Plaintext
#include "pipeline.hpp"
|
|
#include <iostream>
|
|
#include <string>
|
|
using stagepipe::Config;
|
|
using stagepipe::Runtime;
|
|
int main()
|
|
{
|
|
Runtime runtime(Config{1, 0, 64});
|
|
std::string command;
|
|
while (std::cin >> command) {
|
|
if (command == "CONFIG") {
|
|
std::int64_t factor, bias;
|
|
std::size_t limit;
|
|
std::cin >> factor >> bias >> limit;
|
|
std::cout << runtime.reset(Config{factor, bias, limit});
|
|
} else if (command == "SUB") {
|
|
int id;
|
|
std::int64_t value;
|
|
std::cin >> id >> value;
|
|
std::cout << runtime.submit(id, value);
|
|
} else if (command == "CLOSE") {
|
|
std::cout << runtime.close();
|
|
} else if (command == "STEP") {
|
|
int stage;
|
|
std::cin >> stage;
|
|
std::cout << runtime.step(stage);
|
|
} else if (command == "ARM") {
|
|
int stage, code;
|
|
std::cin >> stage >> code;
|
|
std::cout << runtime.arm(stage, code);
|
|
} else if (command == "CANCEL") {
|
|
std::cout << runtime.cancel();
|
|
} else if (command == "SNAP") {
|
|
std::cout << "SNAP " << runtime.snapshot();
|
|
} else if (command == "GET") {
|
|
int id;
|
|
std::cin >> id;
|
|
std::cout << "GET " << runtime.lookup(id);
|
|
}
|
|
std::cout << '\n';
|
|
}
|
|
return 0;
|
|
}
|