add getRepr() and toString() on RelevantState

This commit is contained in:
erik-krogh
2022-09-05 13:27:34 +02:00
parent 3f1cb04f3e
commit a86a940df7
4 changed files with 20 additions and 4 deletions

View File

@@ -968,7 +968,11 @@ module PrefixConstruction<isCandidateSig/1 isCandidate> {
exists(State s | isCandidate(s) | getRoot(s.getRepr()) = getRoot(this.getRepr()))
}
string toString() { result = "RelevantState" }
/** Gets a string representation for this state in a regular expression. */
string toString() { result = State.super.toString() }
/** Gets the term represented by this state. */
RegExpTerm getRepr() { result = State.super.getRepr() }
}
}