Closed ujhelyiz closed 11 years ago
As per @bergmanngabor 's recommendations detailed on http://viatra.inf.mit.bme.hu/performance#Optimizing_queries_and_transformations , I'm not convinced that connecting variables inside check() expressions should be considered good practice in general. In special cases, such as the example above, the warning (as currently generated by the validator) might be confusing/misleading though.
It works like this by design. Actually the validator does connect them in a loose way, hence the error message (The pattern body contains constraints which are only loosely connected.
).
Closing - WONTFIX.
The cartesian product validator does not connect variables used in check expressions. E.g. in the moreFriendsThan pattern from the school demo it reports that the two students are in different partition.
As a solution, the variable set of the check expression (a method in CorePatternLanguageHelper returns these variables) might be considered connected.
I'm not sure whether this issue needs to be fixed, but I believe it is - but it is enough to do it for 0.7 (in other words, we should not delay 0.6.9 for this).