singleton variable in branch ?
Carlo Capelli <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <CABty9wxSqmpTNmwK=5EHOjt6_qcJxV5Qw-1kvqwE=+ADouWWaQ@mail.gmail.com> |
I get a warning in very simple code - Singleton variable in branch: Hyp and I can't spot from where the problem arise. subsynset(Sub, Super) :- s(I,_,Sub,Kind,_,_), ( hyp(I, J) -> s(J,_,Hyp,Kind,_,_), Hyp = Super ; subsynset(Hyp, Super) ). I tried to swap the Hyp binding - just to see if the warning goes away - without luck ... -> s(J,_,Hyp,Kind,_,_), Hyp = Super ... Seems that Hyp is present on both branches. Maybe I'm missing some execution path ? Any hint about ? Thanks Carlo -------------- next part -------------- HTML attachment scrubbed and removed