mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
13 lines
388 B
Plaintext
13 lines
388 B
Plaintext
import csharp
|
|
private import semmle.code.csharp.controlflow.Guards
|
|
|
|
query predicate abstractValue(AbstractValue value, Expr e) {
|
|
e = value.getAnExpr() and e.fromSource()
|
|
}
|
|
|
|
query predicate dualValue(AbstractValue value, AbstractValue dual) { dual = value.getDualValue() }
|
|
|
|
query predicate singletonValue(AbstractValue value) {
|
|
value.isSingleton() and value.getAnExpr().fromSource()
|
|
}
|