struct TuringMachineState { const vector<Inst> program; vector<Inst>::iterator pc; // Program Counter bool a; // 一个寄存器 Integer pos; // 读写头 map<Integer,bool> tape; // 内存 };
struct cpu_state