ddlog
ddlog copied to clipboard
Compiler ignores constants in head atoms of an inference rule
This rule
@weight(f)
tag(w, "GROOVY") :- features(w, f).
is compiled as if it's
@weight(f)
tag(w, t) :- features(w, f).
This is pretty nasty.. can the following be a workaround?
@weight(f)
tag(w, t) :- features(w, f), t = "GROOVY".
Yes, that works.