Skip to content

Commit

Permalink
Rename checkBuiltinPatternsDecl
Browse files Browse the repository at this point in the history
  • Loading branch information
robsimmons committed Dec 2, 2023
1 parent b1f2b7c commit 13ee841
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/language/check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ export function checkFreeVarsInDecl(decl: ParsedDeclaration): Issue[] {
/**
* This check assumes that the first free variable checks have passed, and serves
* only to check that the flattening transformation will produce a well-moded program when
* builtins get flattened out into separate premises.
* functional predicates get flattened out into separate premises.
*/
export function checkBuiltinPatternsDecl(decl: ParsedDeclaration): Issue[] {
export function checkFunctionalPredicatesInDecl(decl: ParsedDeclaration): Issue[] {
const boundVars = new Set<string>();
const issues: Issue[] = [];
for (const premise of decl.premises) {
Expand Down Expand Up @@ -288,7 +288,7 @@ export function check(decls: ParsedDeclaration[]): Issue[] {
for (const decl of decls) {
const declErrors = checkFreeVarsInDecl(decl);
if (declErrors.length === 0) {
declErrors.push(...checkBuiltinPatternsDecl(decl));
declErrors.push(...checkFunctionalPredicatesInDecl(decl));
}
errors.push(...declErrors);
}
Expand Down

0 comments on commit 13ee841

Please sign in to comment.