diff --git a/java/ql/src/Metrics/Summaries/GeneratedVsManualCoverageQuery.qll b/java/ql/src/Metrics/Summaries/GeneratedVsManualCoverageQuery.qll index 9a2a0201e803..8309126c06de 100644 --- a/java/ql/src/Metrics/Summaries/GeneratedVsManualCoverageQuery.qll +++ b/java/ql/src/Metrics/Summaries/GeneratedVsManualCoverageQuery.qll @@ -17,12 +17,12 @@ private int getNumMadModeledApis(string package, string provenance, string apiSu ( // "auto-only" not sc.hasManualModel() and - sc.hasProvenance("df-generated") and + sc.hasGeneratedModel() and provenance = "generated" or sc.hasManualModel() and ( - if sc.hasProvenance("df-generated") + if sc.hasGeneratedModel() then // "both" provenance = "both" diff --git a/shared/mad/codeql/mad/modelgenerator/internal/ModelGeneratorImpl.qll b/shared/mad/codeql/mad/modelgenerator/internal/ModelGeneratorImpl.qll index f56c1b8dfff0..8d4bb4cae5a0 100644 --- a/shared/mad/codeql/mad/modelgenerator/internal/ModelGeneratorImpl.qll +++ b/shared/mad/codeql/mad/modelgenerator/internal/ModelGeneratorImpl.qll @@ -881,7 +881,7 @@ module MakeModelGenerator< string captureMixedFlow(DataFlowSummaryTargetApi api, boolean lift) { result = ContentSensitive::captureFlow(api, lift) or - not exists(ContentSensitive::captureFlow(api, lift)) and + not exists(ContentSensitive::captureFlow(api, _)) and result = captureFlow(api) and lift = true }