compiler/AST/foralls.cpp
// Return NULL if the def is not found or is uncertain.
Return NULL if the def is not found or is uncertain.
Return NULL if the def is not found or is uncertain .
static Expr* findDefOfTemp(SymExpr* origSE)
{
  Symbol* origSym = origSE->symbol();
  if (!origSym->hasFlag(FLAG_TEMP)) return NULL;  
  SymExpr* otherSE = origSym->getSingleDef();
  if (CallExpr* def = toCallExpr(otherSE->parentExpr))
    if (def->isPrimitive(PRIM_MOVE))
      if (otherSE == def->get(1))
        return def->get(2);
  return NULL;
}
static Expr * findDefOfTemp ( SymExpr * origSE ) { Symbol * origSym = origSE -> symbol ( ) ; if ( ! origSym -> hasFlag ( FLAG_TEMP ) ) return NULL ; SymExpr * otherSE = origSym -> getSingleDef ( ) ; if ( CallExpr * def = toCallExpr ( otherSE -> parentExpr ) ) if ( def -> isPrimitive ( PRIM_MOVE ) ) if ( otherSE == def -> get ( 1 ) ) return def -> get ( 2 ) ; return NULL ; }
Return NULL if the def is not found or is uncertain.
Return NULL if the def is not found or is uncertain .
// only temps // uncertain situation