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)
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)
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)
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)