amos 2f32624d3b Batch 18 (20261026-C-hwe-codegen-18): add 100 calibrated HWE code-gen tasks; pause production for rollout
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>
2026-10-27 17:52:13 +08:00

27 lines
1.2 KiB
C++

#include "irq_cycle.hpp"
#include <iostream>
#include <string>
int main() {
irqcycle::Model model;
std::string op;
while (std::cin>>op) {
long long a=0,b=0,c=0,d=0;
irqcycle::Result result;
irqcycle::View view;
std::string extra;
if (op=="open") { std::cin>>a>>b>>c>>d; result=model.open(a,b,c,d); }
else if (op=="mode") { std::cin>>a>>b; result=model.set_mode(a,b); }
else if (op=="arrive") { std::cin>>a>>b; result=model.arrive(a,b); }
else if (op=="begin") { std::cin>>a; result=model.begin(a); }
else if (op=="end") { std::cin>>a; result=model.end(a); }
else if (op=="free") { std::cin>>a; result=model.free(a); }
else if (op=="poll") { std::cin>>a; result=model.poll(a); }
else if (op=="next") { result=model.next(); }
else if (op=="get") { std::cin>>a; result=model.inspect(a,view); extra="V "+irqcycle::encode(view)+"\n"; }
else if (op=="summary") { extra="U "+irqcycle::encode(model.summary())+"\n"; }
else if (op=="audit") { result={0,model.invariant()?1:0}; }
std::cout<<"R "<<irqcycle::encode(result)<<'\n'<<extra<<model.render();
}
return 0;
}