mirror of
https://github.com/github/codeql.git
synced 2026-01-29 22:32:58 +01:00
Add predicate to get return statement from return instruction
This commit is contained in:
@@ -905,6 +905,8 @@ module IR {
|
||||
|
||||
ReturnInstruction() { this = MkReturnNode(ret) }
|
||||
|
||||
ReturnStmt getReturnStmt() { result = ret }
|
||||
|
||||
/** Holds if this statement returns multiple results. */
|
||||
predicate returnsMultipleResults() { exists(MkExtractNode(ret, _)) or ret.getNumExpr() > 1 }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user