CiaoPP: computational properties and predicates as arguments #119
Unanswered
simonefulvio-rollini
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying to perform determinacy checking on the following example:
The use of 'predname' causes an error; I am not sure why, since the argument 'p2' seems a predicate name to me. However, this issue is easily solved by replacing 'predname' with 'atm'.
Given the determinacy assumption on p3, I was expecting p1 to be recognized as det as well, but the tool identifies p1 as semidet.
The tool instead proves p1 as det if the assumption on p3 is modified by instantiating the first parameter:
:- trust pred p3(p2, N, Res) : (num(N),var(Res)) => num(Res) + det.Can you please help me understand what is the issue in the original precondition?
Beta Was this translation helpful? Give feedback.
All reactions