Ungrounded record error when destructuring with don't-cares? #2481
-
Hi,
And interestingly just avoiding - pred(t, ta) :- fact(t), t=[ta, _].
+ pred(t, ta) :- fact(t), t=[ta, _tb]. I could do this, but my real code has more don't-cares and I don't want the noise. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, After the
When you provide an explicit variable for the second part of the record, the constraint system can be solved because the second member of the record has is bound by the variable (
To fix this, we need to transform |
Beta Was this translation helpful? Give feedback.
Hi,
After the
ResolveAliasesTransformer
, all occurences oft
are replaced with[ta,_]
, and the groundedness constraint system cannot give a bounded value to[ta,_]
in the head (var([ta,_])->0
in theSolution
).