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

50 lines
1.6 KiB
C++

#ifndef IRQ_CYCLE_HPP
#define IRQ_CYCLE_HPP
#include <cstdint>
#include <memory>
#include <string>
#include <vector>
namespace irqcycle {
struct Result { int code=0; long long value=0; };
struct View {
long long id=-1;
std::uint64_t generation=0,state=0,oneshot=0,priority=0,mode=0;
std::uint64_t ready=0,running=0,masked=0,pending=0,ticket=0,token=0;
std::uint64_t received=0,hard=0,none=0,handled=0,wakes=0;
std::uint64_t masked_arrivals=0,begun=0,ended=0,replays=0;
};
struct Summary {
std::uint64_t slots=0,open=0,closing=0,closed=0,ready=0,running=0;
std::uint64_t pending=0,masked=0,received=0,hard=0,none=0,handled=0;
std::uint64_t wakes=0,masked_arrivals=0,begun=0,ended=0,replays=0;
std::uint64_t waiting_tokens=0,completed_tokens=0;
};
class Model {
public:
Model();
~Model();
Model(const Model&)=delete;
Model& operator=(const Model&)=delete;
Result open(long long id,long long oneshot,long long priority,long long mode);
Result set_mode(long long id,long long mode);
Result arrive(long long id,long long count);
Result begin(long long id);
Result next();
Result end(long long id);
Result free(long long id);
Result poll(long long token) const;
Result inspect(long long id,View& out) const;
Summary summary() const;
std::vector<int> ready_order() const;
bool invariant() const;
std::string render() const;
private:
struct Impl;
std::unique_ptr<Impl> impl_;
};
std::string encode(const Result& value);
std::string encode(const View& value);
std::string encode(const Summary& value);
}
#endif