test/souffle/convert.py
def has_relations(conj):
    """True if a conjunction contains any relations"""
    expr = getOptField(conj, "Expression")
    if expr != None:
        return expression_has_relations(expr)
    children = getArray(conj, "ConjunctionsOrDisjunctions")
    rec = map(has_relations, children)
    return reduce(lambda a,b: a or b, rec, False)
True if a conjunction contains any relations
True if a conjunction contains any relations
True if a conjunction contains any relations
def has_relations(conj):
    expr = getOptField(conj, "Expression")
    if expr != None:
        return expression_has_relations(expr)
    children = getArray(conj, "ConjunctionsOrDisjunctions")
    rec = map(has_relations, children)
    return reduce(lambda a,b: a or b, rec, False)
def has_relations ( conj ) : expr = getOptField ( conj , "Expression" ) if expr != None : return expression_has_relations ( expr ) children = getArray ( conj , "ConjunctionsOrDisjunctions" ) rec = map ( has_relations , children ) return reduce ( lambda a , b : a or b , rec , False )
True if a conjunction contains any relations
True if a conjunction contains any relations
"""True if a conjunction contains any relations"""
conj