public override string ToString() { var s = new StringBuilder(); s.Append("Output: ") .Append(LowLevelName) .Append(" = ") .AppendLine(RhsExpr.ToString()); return(s.ToString()); }
public override string ToString() { var s = new StringBuilder(); s.Append(IsFactoredSubExpression ? "Sub-expression: " : "Temp: "); //s.Append("<") // .Append(ReuseIndex) // .Append("> "); s.Append(LowLevelName) .Append(" = ") .AppendLine(RhsExpr.ToString()); return(s.ToString()); }
/// <summary> /// Replace a given temp variable in the RHS expression of this computed variable by another /// temp variable /// </summary> /// <param name="oldTempVar"></param> /// <param name="newTempVar"></param> internal void ReplaceRhsTempVariable(GMacCbTempVariable oldTempVar, GMacCbTempVariable newTempVar) { RhsExpr.ReplaceAllVariablesInPlace(oldTempVar.LowLevelName, newTempVar.LowLevelName); }
public override string ToString() { return(this.Op.ToString() + " " + RhsExpr.ToString()); }
/// <summary> /// Replace a sub-expression in the RHS expression of this computed variable by a temp variable name /// </summary> /// <param name="oldSubExpr"></param> /// <param name="newTempVarName"></param> internal void ReplaceRhsSubExpression(SteExpression oldSubExpr, string newTempVarName) { RhsExpr.ReplaceAllByVariableInPlace(oldSubExpr, newTempVarName); }