Skip to content

SageInterface::replaceSubexpressionWithStatement

Similar to replaceExpressionWithStatement, but with more restrictions. Assumptions: from is not within the test of a loop or ifStmt, not currently traversing from or the statement it is in

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

[[visibility]]
void
replaceSubexpressionWithStatement(
    SgExpression* from,
    SageInterface::StatementGenerator* to);

Parameters

Name

Description

from

This class represents the notion of an expression. Expressions

to

Interface for creating a statement whose computation writes its answer into a given variable.

Created with MrDocs