HVM is short for Hack Virtual Machine. It's a tiny script.
Maybe most of you know it. If you don't know, you can go http://www.hacker.org/hvm for more information.
This problem sounds very simple, just to write a simple HVM executor.
The original HVM is not written by C or C++, so it's a little different. If abs (a) > abs (b) (a, b != 0) and a * b < 0, then b / a will be -1. But in C/C++, it will be 0. So you have to do something to adapt it.
0 123ppp
1 [1] 2 [1, 2] 3 [1, 2, 3] p [1, 2] p [1] p [] 321
无
XadillaX@NBUT