added initializing regNum to -1 in both constructors of MachineOperand