# Source code for ufl_legacy.algorithms.expand_compounds

    # -*- coding: utf-8 -*-
    """Algorithm for expanding compound expressions into
    equivalent representations using basic operators."""

    # Copyright (C) 2008-2016 Martin Sandve Alnæs and Anders Logg
    #
    # This file is part of UFL (https://www.fenicsproject.org)
    #
    # SPDX-License-Identifier:    LGPL-3.0-or-later
    #
    # Modified by Anders Logg, 2009-2010

    from ufl_legacy.algorithms.apply_algebra_lowering import apply_algebra_lowering

    def expand_compounds(e):
        return apply_algebra_lowering(e)