Skip to content

Commit

Permalink
C#: Filter out unwanted summaries at the root.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelnebel committed May 22, 2024
1 parent 8c6dcbc commit 49696e7
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,13 @@ private predicate interpretNeutral(UnboundCallable c, string kind, string proven

// adapter class for converting Mad summaries to `SummarizedCallable`s
private class SummarizedCallableAdapter extends SummarizedCallable {
SummarizedCallableAdapter() { interpretSummary(this, _, _, _, _, _) }
SummarizedCallableAdapter() {
exists(Provenance provenance | interpretSummary(this, _, _, _, provenance, _) |
not this.hasBody()
or
this.hasBody() and provenance.isManual()
)
}

private predicate relevantSummaryElementManual(
string input, string output, string kind, string model
Expand Down

0 comments on commit 49696e7

Please sign in to comment.