reduceproduct
ret = reduceproduct(theunit, 0) | reduceproduct(theunit, 1);
int reduceproduct(struct unittype *, int);