We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe6fd2d commit c222c46Copy full SHA for c222c46
1 file changed
include/pl_search/pvar.hpp
@@ -93,7 +93,12 @@ class PVar : public Term {
93
*/
94
int getVarId() const { return var_id; }
95
96
- std::string repr() const override { return "X" + std::to_string(var_id); }
+ std::string repr() const override {
97
+ if (value) {
98
+ return value->dereference()->repr();
99
+ }
100
+ return "X" + std::to_string(var_id);
101
102
103
protected:
104
virtual bool isEqualTo(Term &other) const override {
0 commit comments