Class StratifiedNegationValidator
java.lang.Object
edu.harvard.seas.pl.abcdatalog.ast.validation.StratifiedNegationValidator
A class for validating that an unstratified program can be successfully stratified for negation.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StratifiedProgram
validate
(UnstratifiedProgram prog) Validates that the given unstratified program can be stratified for negation and returns a witness stratified program.
-
Method Details
-
validate
public static StratifiedProgram validate(UnstratifiedProgram prog) throws DatalogValidationException Validates that the given unstratified program can be stratified for negation and returns a witness stratified program.- Parameters:
prog
- the unstratified program- Returns:
- the stratified program
- Throws:
DatalogValidationException
- if the given program cannot be stratified for negation
-