def mult_saturate(a, b, upper_bound, lower_bound):
    """
        Returns the saturated result of a multiplication of two values a and b

        Parameters
        ----------
        a : Integer
            Multiplier
        b : Integer
            Multiplicand
        upper_bound : Integer
            Upper bound for the multiplication
        lower_bound : Integer
            Lower bound for the multiplication
    """
    c = float(a) * float(b)
    if c > upper_bound:
        c = upper_bound
    elif c < lower_bound:
        c = lower_bound
    return c