#include #include "../turing.cpp" /** * @brief Prints debug-like information about provided machine */ template void print(Turing::Machine* machine) { machine->ensure(); std::cout << "rc:" << machine->runCount << ", st:" << machine->getState() << '\n'; for (int i = machine->getMemoryStart(); i < machine->getMemoryEnd(); i++) std::cout << (machine->at(i)); std::cout << '\n'; for (int i = machine->getMemoryStart(); i < machine->getPosition(); i++) std::cout << ' '; std::cout << "^\n\n"; }