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>
47 lines
1.3 KiB
C++
47 lines
1.3 KiB
C++
#ifndef INLINE_RECORD_HPP
|
|
#define INLINE_RECORD_HPP
|
|
#include <cstdint>
|
|
#include <memory>
|
|
#include <string>
|
|
namespace inline_record {
|
|
struct Result {
|
|
std::string error;
|
|
std::int64_t token = 0;
|
|
std::int64_t count = 0;
|
|
std::int64_t tag = 0;
|
|
std::int64_t bytes = 0;
|
|
std::int64_t checksum = 0;
|
|
std::int64_t value = 0;
|
|
};
|
|
struct Totals {
|
|
std::int64_t allocations = 0;
|
|
std::int64_t frees = 0;
|
|
std::int64_t live = 0;
|
|
std::int64_t bytes = 0;
|
|
std::int64_t next = 1;
|
|
};
|
|
class Store {
|
|
public:
|
|
Store();
|
|
~Store();
|
|
Store(const Store&) = delete;
|
|
Store& operator=(const Store&) = delete;
|
|
Result replace(std::int64_t id, std::int64_t n,
|
|
std::int64_t tag, std::int64_t budget);
|
|
Result fill(std::int64_t id, std::int64_t start,
|
|
std::int64_t count, std::int64_t value);
|
|
Result copy(std::int64_t dst, std::int64_t src,
|
|
std::int64_t from, std::int64_t to, std::int64_t count);
|
|
Result drop(std::int64_t id);
|
|
Result info(std::int64_t id) const;
|
|
Result get(std::int64_t id, std::int64_t index) const;
|
|
Result byte(std::int64_t id, std::int64_t offset) const;
|
|
Totals totals() const;
|
|
private:
|
|
struct Impl;
|
|
std::unique_ptr<Impl> impl_;
|
|
};
|
|
int run_cli();
|
|
}
|
|
#endif
|