diff --git a/include/r8veritas.hh b/include/r8veritas.hh index 7206503..e710ac4 100644 --- a/include/r8veritas.hh +++ b/include/r8veritas.hh @@ -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>; static std::array all_influences; diff --git a/src/r8veritas.cc b/src/r8veritas.cc index 138dc7d..2135eeb 100644 --- a/src/r8veritas.cc +++ b/src/r8veritas.cc @@ -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; } \ No newline at end of file