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 17, 2024
1 parent 39cc38a commit 13ecb6c
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 13ecb6c

Please sign in to comment.