Merge pull request #1047 from jbj/dataflow-StmtExpr

C++: Data flow through StmtExpr
This commit is contained in:
Geoffrey White
2019-03-06 10:33:12 +00:00
committed by GitHub
4 changed files with 25 additions and 0 deletions

View File

@@ -275,6 +275,10 @@ private predicate exprToExprStep_nocfg(Expr fromExpr, Expr toExpr) {
fromExpr = op.getOperand()
)
or
toExpr = any(StmtExpr stmtExpr |
fromExpr = stmtExpr.getResultExpr()
)
or
toExpr = any(Call call |
exists(DataFlowFunction f, FunctionInput inModel , FunctionOutput outModel, int iIn |
call.getTarget() = f and