[err]202607242120
This commit is contained in:
1 parent
491e8a86eb
commit
ef35a553b3
2 files changed
+4
-5
No files matched your search
@@ -45,11 +45,10 @@ using ins = struct ins {
|
||||
operator const ins_bytecode() const {
|
||||
return (bc << CELL_SIZE_BITWIDTH) | sacrifice;
|
||||
}
|
||||
r8veritas::ins operator()(const r8veritas::ins_bytecode &bc) {
|
||||
return {bc >> CELL_SIZE_BITWIDTH, bc & ((1 << CELL_SIZE_BITWIDTH) - 1)};
|
||||
}
|
||||
};
|
||||
|
||||
inline r8veritas::ins to_ins(const r8veritas::ins_bytecode &bc) {
|
||||
return {bc >> CELL_SIZE_BITWIDTH, bc & ((1 << CELL_SIZE_BITWIDTH) - 1)};
|
||||
}
|
||||
using path = std::stack<std::pair<r8veritas::stat, r8veritas::ins_bytecode>>;
|
||||
|
||||
static std::array<r8veritas::influence, CELL_SIZE> all_influences;
|
||||
|
||||
+1
-1
@@ -129,7 +129,7 @@ r8veritas::path track_path(const r8veritas::truthtable &truthtable) {
|
||||
for (auto tmp_stat = truthtable.second; tmp_stat != truthtable.first;) {
|
||||
p.push(visited_op[tmp_stat]);
|
||||
tmp_stat = p.top().first;
|
||||
std::cout << r8veritas::ins(p.top().second) << std::endl;
|
||||
std::cout << r8veritas::to_ins(p.top().second) << std::endl;
|
||||
}
|
||||
return p;
|
||||
}
|
||||
Reference in new issue
Block a user