コード例 #1
0
void exec_insts() {
	while (true) {
		if (inst_idx < 1 || inst_idx > insts.size())
			break;
		Inst *inst = &insts[inst_idx-1];
		int ret = inst->call(inst);
		if (ret) {
			puts("ABORTED");
			puts("#");
			return;
		}
	}
	for (auto x : out)
		printf("%d\n", x);
	puts("#");
}