add vm and instr visitor
simple function
ir, not done