mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
C#/Java/Ruby/Swift: Address review comments.
This commit is contained in:
@@ -50,8 +50,6 @@ private string asSummaryModel(TargetApi api, string input, string output, string
|
||||
|
||||
string asNegativeSummaryModel(TargetApi api) { result = asPartialNegativeModel(api) + "generated" }
|
||||
|
||||
predicate partialNegativeModel = asPartialNegativeModel/1;
|
||||
|
||||
/**
|
||||
* Gets the value summary model for `api` with `input` and `output`.
|
||||
*/
|
||||
|
||||
@@ -74,13 +74,9 @@ string captureFlow(TargetApi api) {
|
||||
|
||||
/**
|
||||
* Gets the negative summary for `api`, if any.
|
||||
* A negative summary is generated, if there does not exist any positive flow that
|
||||
* shares the same summary prefix - otherwise these models will be indistinguishable.
|
||||
* A negative summary is generated, if there does not exist any positive flow.
|
||||
*/
|
||||
string captureNoFlow(TargetApi api) {
|
||||
not exists(TargetApi other, string flow |
|
||||
flow = captureFlow(other) and
|
||||
partialNegativeModel(other) = partialNegativeModel(api)
|
||||
) and
|
||||
not exists(captureFlow(api)) and
|
||||
result = asNegativeSummaryModel(api)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user