Goose  Artifact [30c2369941]

Artifact 30c2369941954809cd2164f41aafa26c888ad17326ad2a6b9e58db582a14e553:

  • File bs/llr/binaryop.cpp — part of check-in [af650a9e95] at 2019-09-22 14:37:55 on branch trunk — Project renaming. (user: achavasse size: 366)

#include "llr.h"

namespace goose::llr
{
    bool BinaryOp::canBeExecuted() const
    {
        return IsValueConstantOrExecutable( m_lhs )
            && IsValueConstantOrExecutable( m_rhs );
    }

    bool BinaryOp::canBeEagerlyEvaluated() const
    {
        return CanValueBeEagerlyEvaluated( m_lhs )
            && CanValueBeEagerlyEvaluated( m_rhs );
    }
}