def format_variable_assignment(step):
    """Format an assignment statement."""

    asn = step['detail']
    lhs, rhs, binary = asn['lhs'], asn['rhs-value'], asn['rhs-binary']
    binary = '({})'.format(binary) if binary else ''
    return '{} = {} {}'.format(lhs, rhs, binary)