コード例 #1
0
def report_error(logic, note, ast):
    msg = "The verification condition is not in logic {}{} because {}.".format(
        logic, note, il.reason())
    if il.reason() == "functions are not stratified":
        for sorts, asts in unstrat:
            msg += "\n\nNote: the following functions form a cycle:\n"
            for a in asts:
                if isinstance(a, il.Symbol):
                    msg += '  {}\n'.format(il.sym_decl_to_str(a))
                else:
                    msg += '  {}\n'.format(
                        iu.IvyError(a, "quantifier alternation"))
    raise iu.IvyError(ast, msg)
コード例 #2
0
ファイル: ivy_theory.py プロジェクト: odedp/ivy
def report_error(logic, note, ast, unstrat):
    msg = "This formula is not in logic {}{} because {}".format(logic, note, il.reason())
    for sorts, asts in unstrat:
        msg += "\n\nNote: the sort(s) " + ",".join(sorts) + " form a function cycle using:\n"
        for a in asts:
            if isinstance(a, il.Symbol):
                msg += "  function {}\n".format(a)
            else:
                msg += "  {}\n".format(iu.IvyError(a, "quantifier alternation"))
    raise iu.IvyError(ast, msg)
コード例 #3
0
ファイル: ivy_theory.py プロジェクト: yotamfe/ivy
def report_error(logic,note,ast):
    msg = "The verification condition is not in logic {}{} because {}.".format(logic,note,il.reason())
    if il.reason() == "functions are not stratified":
        for sorts,asts in unstrat:
            msg += "\n\nNote: the following functions form a cycle:\n"
            for a in asts:
                if isinstance(a,il.Symbol):
                    msg += '  {}\n'.format(il.sym_decl_to_str(a))
                else:
                    msg += '  {}\n'.format(iu.IvyError(a,"quantifier alternation"))                
    raise iu.IvyError(ast,msg)
コード例 #4
0
def report_error(logic, note, ast, unstrat):
    msg = "This formula is not in logic {}{} because {}".format(
        logic, note, il.reason())
    for sorts, asts in unstrat:
        msg += "\n\nNote: the sort(s) " + ','.join(
            sorts) + ' form a function cycle using:\n'
        for a in asts:
            if isinstance(a, il.Symbol):
                msg += '  function {}\n'.format(a)
            else:
                msg += '  {}\n'.format(IvyError(a, "quantifier alternation"))
    raise iu.IvyError(ast, msg)