pub fn vm_status_of_result<T>(result: VMResult<T>) -> VMStatus