Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/21/17 11:33:53 (7 years ago)
Author:
pkimmesw
Message:

#2665 Testet Problems, Testet error functions, Small fixes, Created HL files

Location:
branches/PushGP/HeuristicLab.PushGP
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP

    • Property svn:ignore
      •  

        old new  
        11*.user
         2packages
         3TestResults
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/ExecExpressions.cs

    r15032 r15334  
    2020    "If the top item of the BOOLEAN stack is TRUE then this removes the second item on the EXEC stack, leaving the first item to be executed. If it is false then it removes the first item, leaving the second to be executed.",
    2121    StackTypes.Boolean,
    22     execIn: 2)]
     22    requiredBlockCount: 2)]
    2323  public class ExecIfExpression : StatelessExpression {
    2424    public ExecIfExpression() { }
     
    4545    "EXEC.Y",
    4646    "Inserts beneath the top item of the EXEC stack a new item of the form \"( EXEC.Y <TopItem> )\"",
    47     execIn: 1)]
     47    requiredBlockCount: 1)]
    4848  [StorableClass]
    4949  public class ExecYExpression : StatelessExpression {
     
    5454    public override bool IsNoop(IInternalPushInterpreter interpreter) {
    5555      return interpreter.ExecStack.Count == 0 ||
    56              interpreter.Configuration.MaxPointsInProgram < 2 ||
     56             interpreter.Configuration.MaxProgramLength < 2 ||
    5757             (interpreter.ExecStack.Top.IsProgram && ((PushProgram)interpreter.ExecStack.Top).Depth == interpreter.Configuration.MaxDepth);
    5858    }
     
    8080    "EXEC.K",
    8181    "Removes the second item on the EXEC stack.",
    82     execIn: 2)]
     82    requiredBlockCount: 2)]
    8383  [StorableClass]
    8484  public class ExecKExpression : StatelessExpression {
     
    106106    "EXEC.S",
    107107    "Pops 3 items from the EXEC stack called A, B, and C. Then pushes a list containing B and C back onto the EXEC stack, followed by another instance of C, followed by another instance of A.",
    108     execIn: 3)]
     108    requiredBlockCount: 3)]
    109109  [StorableClass]
    110110  public class ExecSExpression : StatelessExpression {
     
    167167    "EXEC.WHILE",
    168168    "Executes top EXEC item recursively as long top BOOLEAN is TRUE.",
    169     StackTypes.Boolean, execIn: 1)]
     169    StackTypes.Boolean, requiredBlockCount: 1)]
    170170  [StorableClass]
    171171  public class ExecWhileExpression : StatelessExpression {
     
    196196    "EXEC.DO*WHILE",
    197197    "Executes top EXEC item recursively until max. amount of eval. expressions is reached or top EXEC item removes the the recursive call.",
    198     execIn: 1)]
     198    requiredBlockCount: 1)]
    199199  [StorableClass]
    200200  public class ExecDoWhileExpression : StatelessExpression {
     
    220220    "Top EXEC item is only executed, if top BOOLEAN is TRUE.",
    221221    StackTypes.Boolean,
    222     execIn: 1)]
     222    requiredBlockCount: 1)]
    223223  [StorableClass]
    224224  public class ExecWhenExpression : StatelessExpression {
Note: See TracChangeset for help on using the changeset viewer.