AnalyzeOneUnit is a convenience method to analyze a program consisting of a single source unit.
(unit parse.SourceUnit, extraPredicates map[ast.PredicateSym]ast.Decl)
| 96 | |
| 97 | // AnalyzeOneUnit is a convenience method to analyze a program consisting of a single source unit. |
| 98 | func AnalyzeOneUnit(unit parse.SourceUnit, extraPredicates map[ast.PredicateSym]ast.Decl) (*ProgramInfo, error) { |
| 99 | return Analyze([]parse.SourceUnit{unit}, extraPredicates) |
| 100 | } |
| 101 | |
| 102 | // Analyze identifies the extensional and intensional predicates of a program and checks every rule. |
| 103 | func Analyze(program []parse.SourceUnit, extraPredicates map[ast.PredicateSym]ast.Decl) (*ProgramInfo, error) { |