void interpret(const int *instrs, int c1, int c2) {
int tmp;
int running;
int result;
int ptr;
result = 0;
ptr = 0;
running = 1;
while (running == 1) {
tmp = instrs[ptr];
if (tmp == 0) {
running = 0;
} else {
};
if (tmp == 1) {
c1 = (c1 + 1);
} else {
};
if (tmp == 2) {
c2 = (c2 + 1);
} else {
};
if (tmp == 3) {
c1 = (c1 - 1);
} else {
};
if (tmp == 4) {
c2 = (c2 - 1);
} else {
};
if (tmp == 5) {
if (c1 == 0) {
ptr = (ptr + 1);
ptr = instrs[ptr];
} else {
ptr = (ptr + 2);
ptr = instrs[ptr];
};
} else {
};
if (tmp == 6) {
if (c2 == 0) {
ptr = (ptr + 1);
ptr = instrs[ptr];
} else {
ptr = (ptr + 2);
ptr = instrs[ptr];
};
} else {
};
};
result = c1;
}