Add predicate to get return statement from return instruction

This commit is contained in:
Owen Mansel-Chan
2021-02-02 11:18:31 +00:00
parent c4eaf791e6
commit 4c30ed9054

View File

@@ -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 }