mirror of
https://github.com/github/codeql.git
synced 2026-04-14 11:34:00 +02:00
22 lines
668 B
Plaintext
Generated
22 lines
668 B
Plaintext
Generated
// generated by codegen, do not edit
|
|
import codeql.rust.elements
|
|
import TestUtils
|
|
|
|
query predicate instances(IfExpr x) { toBeTested(x) and not x.isUnknown() }
|
|
|
|
query predicate getAttr(IfExpr x, int index, Attr getAttr) {
|
|
toBeTested(x) and not x.isUnknown() and getAttr = x.getAttr(index)
|
|
}
|
|
|
|
query predicate getCondition(IfExpr x, Expr getCondition) {
|
|
toBeTested(x) and not x.isUnknown() and getCondition = x.getCondition()
|
|
}
|
|
|
|
query predicate getElse(IfExpr x, Expr getElse) {
|
|
toBeTested(x) and not x.isUnknown() and getElse = x.getElse()
|
|
}
|
|
|
|
query predicate getThen(IfExpr x, BlockExpr getThen) {
|
|
toBeTested(x) and not x.isUnknown() and getThen = x.getThen()
|
|
}
|