def polymul(p0, p1, degree, basename, suppress_odd = False):
    result = []
    for i in range(min(degree, len(p0) + len(p1) - 1)):
        terms = []
        for j in range(i + 1):
            if j < len(p0) and i - j < len(p1):
                t0 = p0[j]
                t1 = p1[j - i]
                if t0 != None and t1 != None:
                    terms.append(t0 + mulsym + t1)
        if terms == []:
            result.append(None)
        else:
            var = basename % i
            if (j % 2 == 0) or not suppress_odd:
                prd(var + ' = ' + ' + '.join(terms))
            result.append(var)
    return result
dataset/ETHPy150Open google/roboto/third_party/spiro/curves/numintsynth.py/polymul/swapped operands of `-`