Content-Length: 285240 | pFad | http://github.com/github/codeql/pull/20013/commits/9de361703281555283238135c6d6d4ac0fe8646f

69 QL4QL: Discard predicates are always alive by kaspersv · Pull Request #20013 · github/codeql · GitHub
Skip to content

QL4QL: Discard predicates are always alive #20013

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
QL4QL: Add overlay[discard_entity] annotation
  • Loading branch information
kaspersv committed Jul 10, 2025
commit 9de361703281555283238135c6d6d4ac0fe8646f
13 changes: 13 additions & 0 deletions ql/ql/src/codeql_ql/ast/Ast.qll
Original file line number Diff line number Diff line change
Expand Up @@ -2554,6 +2554,10 @@ private class LocalQArg extends AnnotationArg {
LocalQArg() { this.getValue() = "local?" }
}

private class DiscardEntityArg extends AnnotationArg {
DiscardEntityArg() { this.getValue() = "discard_entity" }
}

private class MonotonicAggregatesArg extends AnnotationArg {
MonotonicAggregatesArg() { this.getValue() = "monotonicAggregates" }
}
Expand Down Expand Up @@ -2641,6 +2645,15 @@ class OverlayLocalQ extends Annotation {
override string toString() { result = "overlay[local?]" }
}

/** An `overlay[discard_entity]` annotation. */
class OverlayDiscardEntity extends Annotation {
OverlayDiscardEntity() {
this.getName() = "overlay" and this.getArgs(0) instanceof DiscardEntityArg
}

override string toString() { result = "overlay[discard_entity]" }
}

/** A `language[monotonicAggregates]` annotation. */
class MonotonicAggregates extends Annotation {
MonotonicAggregates() { this.getArgs(0) instanceof MonotonicAggregatesArg }
Expand Down








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/github/codeql/pull/20013/commits/9de361703281555283238135c6d6d4ac0fe8646f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy