Ejemplo n.º 1
0
        public override string ToString()
        {
            var s = new StringBuilder();

            s.Append("Output: ")
            .Append(LowLevelName)
            .Append(" = ")
            .AppendLine(RhsExpr.ToString());

            return(s.ToString());
        }
Ejemplo n.º 2
0
        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());
        }
Ejemplo n.º 3
0
 /// <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);
 }
Ejemplo n.º 4
0
 public override string ToString()
 {
     return(this.Op.ToString() + " " + RhsExpr.ToString());
 }
Ejemplo n.º 5
0
 /// <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);
 }