-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: change prefix to val__; check no atom starts with it
We now check if the prefix 'val' is in the atom name. This is because after the compilation there might be conflicts in the val predicate names. Consider the following example: '"p a b" & val-p-a-b' The formula is compiled as follows: "p a b" -> 'val-p-a-b' (:derived (val-p-a-b) (p a b)) ^ ^ derived-predicate condition (ground fluent, predicate name 'p', constants 'a' and 'b') "val-p-a-b" -> 'val-val-p-a-b' (:derived (val-val-p-a-b) (val-p-a-b)) ^ ^ derived-predicate condition (ground fluent, predicate name 'p-a-b', no constants The prefix is changed to `val__` to make the prefix less probable to occur in an atom name.
- Loading branch information
1 parent
0d19b23
commit bf3d3cf
Showing
2 changed files
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters