Record Class ScmLaneSetCover

java.lang.Object
java.lang.Record
org.impulsegraph.compiler.ast.ScmLaneSetCover
All Implemented Interfaces:
ImpScmNode

public record ScmLaneSetCover(int maxNodes, long targetMask, boolean pairMode) extends Record implements ImpScmNode
Multi-lane greedy minimum set cover / exact 2-node pair cover step (opcode 0xC9 OP_LANE_SET_COVER).
  • Constructor Details

    • ScmLaneSetCover

      public ScmLaneSetCover(int maxNodes, long targetMask, boolean pairMode)
      Creates an instance of a ScmLaneSetCover record class.
      Parameters:
      maxNodes - the value for the maxNodes record component
      targetMask - the value for the targetMask record component
      pairMode - the value for the pairMode record component
    • ScmLaneSetCover

      public ScmLaneSetCover(int maskReg, int mode)
  • Method Details

    • maskReg

      public int maskReg()
    • mode

      public int mode()
    • greedy

      public static ScmLaneSetCover greedy(int maxNodes, long targetMask)
    • pairs

      public static ScmLaneSetCover pairs(long targetMask)
    • toScmString

      public String toScmString()
      Specified by:
      toScmString in interface ImpScmNode
    • accept

      public <R> R accept(ImpScmVisitor<R> visitor)
      Specified by:
      accept in interface ImpScmNode
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • maxNodes

      public int maxNodes()
      Returns the value of the maxNodes record component.
      Returns:
      the value of the maxNodes record component
    • targetMask

      public long targetMask()
      Returns the value of the targetMask record component.
      Returns:
      the value of the targetMask record component
    • pairMode

      public boolean pairMode()
      Returns the value of the pairMode record component.
      Returns:
      the value of the pairMode record component