Address review comment

This commit is contained in:
Tom Hvitved
2024-03-12 11:22:04 +01:00
parent da66281fef
commit 0e0b73a5e6

View File

@@ -1334,8 +1334,10 @@ module MakeImpl<InputSig Lang> {
bindingset[c, t, tail]
additional Ap apCons(Content c, Typ t, Ap tail) {
result = Param::apCons(c, t, tail) and
Config::accessPathLimit() > 0 and
if tail instanceof ApNil then any() else Config::accessPathLimit() > 1
exists(int limit |
limit = Config::accessPathLimit() and
if tail instanceof ApNil then limit > 0 else limit > 1
)
}
pragma[nomagic]