mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Shared: Make sure getMadRepresentation is unique
This commit is contained in:
@@ -686,6 +686,11 @@ module Make<
|
||||
derivedFluentFlowPush(_, _, _, head, tail, _)
|
||||
}
|
||||
|
||||
pragma[nomagic]
|
||||
private string getUniqueMadRepresentation(SummaryComponent c) {
|
||||
result = strictconcat(string s | s = c.getMadRepresentation() | s, "/")
|
||||
}
|
||||
|
||||
/**
|
||||
* A (non-empty) stack of summary components.
|
||||
*
|
||||
@@ -732,7 +737,7 @@ module Make<
|
||||
exists(SummaryComponent head, SummaryComponentStack tail |
|
||||
head = this.head() and
|
||||
tail = this.tail() and
|
||||
result = tail.getMadRepresentation() + "." + head.getMadRepresentation()
|
||||
result = tail.getMadRepresentation() + "." + getUniqueMadRepresentation(head)
|
||||
)
|
||||
or
|
||||
exists(SummaryComponent c |
|
||||
|
||||
Reference in New Issue
Block a user